Skip to content
Prev 276853 / 398506 Next

ggplot stat_summary(mean_cl_boot)

David Winsemius <dwinsemius <at> comcast.net> writes:
In defense of the OP, this is a very confusing situation.
 mean_cl_boot is a ggplot2 function that wraps smean.cl.boot
from the Hmisc package: it's almost impossible to figure this
out from looking at the raw code of mean_cl_boot, although the
help page for ?mean_cl_boot does reference smean.cl.boot.
  ?smean.cl.boot (in Hmisc, so you'll need to have that package
loaded) has a B=1000 parameter for bootstrapping.
   I don't know if stat_summary(fun.data="mean_cl_boot",B=10000)
will work or not, but it would be worth a try (try setting B
to a small number and see if your CIs get very noisy, or set
it to a large number and see if your plot starts taking a lot
longer to compute ...)