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
median_hilow broken in stat_summary examples #1520
Comments
Already fixed in dev: http://docs.ggplot2.org/dev/stat_summary.html |
Can you please create a reproducible example that I can easily copy and paste into R? |
Also, please don't provide |
Could you please make your example more minimal, and use ````R` to make an R code block? |
library(ggplot2)
require(nlme)# for data Theoph Oxboys
stat_sum_df <- function(fun, geom="smooth", ...) {
stat_summary(fun.data=fun, geom=geom, ...)
}
ggplot(Oxboys ,aes(round(age,1),height))+
geom_line(aes(group=Subject))+
geom_point()+
stat_sum_df("median_hilow",geom =
"smooth",col="red",fill="red",alpha=0.1,size=2) |
That works fine for me with the latest ggplot2 and Hmisc. |
Ok, now I see what you're talking about. This is why making the most minimal possible example is helpful. |
Hi Hadley many thanks for the fast response and fix. Thank you for making R awesome. |
many examples involving hmisc functions just does not work as is:
http://docs.ggplot2.org/current/stat_summary.html
It is not clear whether support for hmisc functions is still planned if yes we need a fix.
The text was updated successfully, but these errors were encountered: