View source: R/ggplot_functions.R
errorbars | R Documentation |
Deprecated! Use stat_errorbar
instead!
Often, automatically bootstrapped error bars in ggplot2
are accompanied
by a dot indicating the mean of the errorbars. Generally, this is done with
two calls of stat_summary
, one for the bars and one
for the dot. This function is just a shortcut that will add both.
errorbars(gg_obj, ...)
gg_obj |
The ggplot object (i.e., what is built up from |
... |
Additional arguments for the |
## Not run: ggplot(df, aes(x = x, y = y)) %+% geom_point() %>% errorbars() + xlab("WHAAAT") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.