We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
stat_summary_bin
bins
breaks
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()
The text was updated successfully, but these errors were encountered:
StatSummaryBin takes bins and binwidth arguments, but not breaks. A workaround could be:
StatSummaryBin
binwidth
ggplot(df, aes(x = cut_width(x, 0.5, center = 0), y = y)) + stat_summary_bin()
Sorry, something went wrong.
Add breaks parameter in StatSummaryBin. Fixes tidyverse#2214
a8338b4
No branches or pull requests
I'd like to pass "breaks" to stat_summary_bin, but this doesn't seem to work as expected, despite other binning arguments working.
The text was updated successfully, but these errors were encountered: