Skip to content

Warn too many breaks before doing seq() #4132

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

Conversation

yutannihilation
Copy link
Member

Fix #4131

devtools::load_all("~/repo/ggplot2")
#> Loading ggplot2

ggplot(tibble::tibble(x=c(1, 1e12)), aes(x)) + geom_histogram(binwidth=1)
#> Warning: Computation failed in `stat_bin()`:
#> The number of histogram bins must be less than 1,000,000.
#> Did you make `binwidth` too small?

Created on 2020-07-11 by the reprex package (v0.3.0)

@yutannihilation yutannihilation merged commit 325aef2 into tidyverse:master Jul 11, 2020
@yutannihilation yutannihilation deleted the fix/issue-4131-warn-before-seq branch July 11, 2020 22:59
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.

geom_histogram does not warn about absurdly large number of bins
2 participants