averageLineWithErrorBars | R Documentation |
Add an average line and standard error bars to an existing plot
averageLineWithErrorBars(x, y, average.FUN = mean, col = 1, error.col = 1, error.lty = 1, whisker = 0.2, ...)
x |
vector of X axis locations |
y |
vecotr of Y axis values, to be averaged at each value of X |
average.FUN |
The function for calculating the average |
col |
Color for the average line |
error.col |
Color for the error bars |
error.lty |
Line type for the error bars |
whisker |
Size of the whiskers, in units of X |
... |
Additional arguments, passed to |
A rather hokey attempt to be able to superimpose error bars on a variety of plots.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.