averageLineWithErrorBars: Add error bars to an existing plot

Description Usage Arguments Details

View source: R/mathTools.R

Description

Add an average line and standard error bars to an existing plot

Usage

1
averageLineWithErrorBars(x, y, average.FUN = mean, col = 1, error.col = 1, error.lty = 1, whisker = 0.2, ...)

Arguments

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 line

Details

A rather hokey attempt to be able to superimpose error bars on a variety of plots.


robertdouglasmorrison/DuffyTools documentation built on Dec. 7, 2018, 8:02 a.m.