Skip to content

Prevent failure of binning algorithm in rare cases. - #3613

Merged
clauswilke merged 1 commit into
tidyverse:masterfrom
wilkelab:issue-3606-stat_bin
Nov 6, 2019
Merged

clauswilke merged 1 commit into
tidyverse:masterfrom
wilkelab:issue-3606-stat_bin

Conversation

@clauswilke

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

@yutannihilation yutannihilation 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.

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

lock Bot commented May 5, 2020

Copy link
Copy Markdown

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