Skip to content

Make sure nbins are converted to the correct binwidth - #3704

Merged
thomasp85 merged 2 commits into
tidyverse:v3.3.0-rcfrom
thomasp85:contour-nbins
Jan 8, 2020
Merged

thomasp85 merged 2 commits into
tidyverse:v3.3.0-rcfrom
thomasp85:contour-nbins

Conversation

@thomasp85

Copy link
Copy Markdown
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

@clauswilke clauswilke left a comment

Copy link
Copy Markdown
Member

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