The default geom for
g <- ggplot(diamonds, aes(carat, price)) g + stat_summary_bin() #> Error in seq.default(from = best$lmin, to = best$lmax, by = best$lstep) : #> 'from' must be of length 1
Right now we need to explicitly add the
g + stat_summary_bin(fun.data = mean_se)
The error message could also be improved when some aes are missing.
The text was updated successfully, but these errors were encountered: