Skip to content

Make sure nbins are converted to the correct binwidth #3704

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 8, 2020

Conversation

thomasp85
Copy link
Member

Currently the bins argument in stat_contour_filled() is treated as the number of breakpoints, rather than the number of bins. I suspect this is a bug, as most people will use it to set the actual number of bins. This PR fixes it by correcting the bin width from bins calculation

@thomasp85 thomasp85 added this to the ggplot2 3.3.0 milestone Jan 8, 2020
@thomasp85 thomasp85 requested a review from clauswilke January 8, 2020 10:56
Copy link
Member

@clauswilke clauswilke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@thomasp85 thomasp85 merged commit 54a2f2f into tidyverse:v3.3.0-rc Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants