You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error is confusing, as we haven't specified any boundary:
library(ggplot2)
ggplot(mpg, aes(displ)) +
geom_histogram(bins=1, center=0)
#> Warning: Computation failed in `stat_bin()`.#> Caused by error in `bin_breaks_width()`:#> ! Only one of `boundary` and `center` may be specified.
Inversely, when using the boundary argument, no such error is raised.
The following error is confusing, as we haven't specified any boundary:
Inversely, when using the
boundary
argument, no such error is raised.Created on 2024-05-13 with reprex v2.1.0
I think it is due to this line that populates a
boundary
argument, which then conflicts withcenter
.ggplot2/R/bin.R
Lines 117 to 120 in 54cbb98
The text was updated successfully, but these errors were encountered: