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.
The default geom for stat_summary_bin() is geom_pointrange() and requires y, ymin and ydata aes. I would expect the stat to automatically compute the missing aes, so that the following would work:
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 fun.data argument:
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:
The default geom for
stat_summary_bin()
isgeom_pointrange()
and requiresy
,ymin
andydata
aes. I would expect the stat to automatically compute the missing aes, so that the following would work:Right now we need to explicitly add the
fun.data
argument:The error message could also be improved when some aes are missing.
The text was updated successfully, but these errors were encountered: