ggplot2
uses Hmisc:smean_cl_boot
in its stat_summary
as
stat_summary(fun.data = mean_cl_boot, geom = "pointrange")
Is it possible to specify a 90% confidence interval instead of the default 95? In Hmisc::smean_cl_boot
it is an option, but I don't know how to pass it through the ggplot2
syntax. I prefer not to define a custom function.
You can use the fun.args
argument of stat_summary
to pass arguments to the function.
Try:
stat_summary(fun.data = mean_cl_boot, geom = "pointrange",fun.args=list(conf.int=.9))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.