Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`stat_summary_bin` expects some binning arguments (e.g., `bins`) but not others (e.g., `breaks`) #2214
I'd like to pass "breaks" to stat_summary_bin, but this doesn't seem to work as expected, despite other binning arguments working.
set.seed(32) library("ggplot2") df <- data.frame(x = rnorm(1000), y = rnorm(1000)) ggplot(df, aes(x = x, y = y)) + stat_summary_bin(breaks = seq(-3, 3, by = 0.5)) #> Warning: Ignoring unknown parameters: breaks #> No summary function supplied, defaulting to `mean_se() #> Warning: Removed 1 rows containing missing values (geom_pointrange).
ggplot(df, aes(x = x, y = y)) + stat_summary_bin(bins = 12) #> No summary function supplied, defaulting to `mean_se()