Skip to content

Warn too many breaks before doing seq() - #4132

Merged
yutannihilation merged 1 commit into
tidyverse:masterfrom
yutannihilation:fix/issue-4131-warn-before-seq
Jul 11, 2020
Merged

yutannihilation merged 1 commit into
tidyverse:masterfrom
yutannihilation:fix/issue-4131-warn-before-seq

Conversation

@yutannihilation

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