-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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 error when missing ymin/ymax in facet #1445
Comments
More minimal reprex: df <- data.frame(x = c(1, 2, 1), y = c(2, 2, 2), g = c(1, 1, 2), se = c(1, 1, NA))
ggplot(df, aes(x, y)) +
stat_summary(fun.data = mean_se, geom = "pointrange") +
facet_wrap(~g) |
This eliminates the error, but I'm not sure if this is what you expected. Did pointrange use to display just the points if ymin/ymax were missing? |
I am happy, my code produces a plot again. Error appeared after upgrade Taavi On Tue, Jan 26, 2016 at 3:56 PM, Hadley Wickham notifications@github.com
|
stat_summary gives error with ggplot2_2.0.0 when missing data for ymin/ymax in at least one facet to calculate errorbars/pointrange.
ggplot2 1.0.1 robustly plotted just points without bars in such facet.
Taavi
Minimal example:
The text was updated successfully, but these errors were encountered: