Skip to content

Prevent failure of binning algorithm in rare cases. #3613

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 1 commit into from
Nov 6, 2019

Conversation

clauswilke
Copy link
Member

This closes #3606:

library(ggplot2)
ggplot() + geom_histogram(aes(x= rep(0.25,10)))
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

Created on 2019-11-05 by the reprex package (v0.3.0)

Copy link
Member

@yutannihilation yutannihilation left a comment

Choose a reason for hiding this comment

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

Looks good.

@clauswilke clauswilke merged commit 4858025 into tidyverse:master Nov 6, 2019
@clauswilke clauswilke deleted the issue-3606-stat_bin branch November 6, 2019 02:02
@lock
Copy link

lock bot commented May 5, 2020

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

geom_histogram stat_bin computation fails if data = 0.25
2 participants