errorBars: errorBars

Description Usage Arguments

Description

Produce error bars at given positions. When se=FALSE, input should be y1=lower limit and y2=upper limit. When se=TRUE, input should be y1=mean and y2=standard error, in which case error bars represent two standard errors either side of the mean. Can handle vector inputs as well as scalars.

Usage

1
2
errorBars(y1, y2, x = 1:length(y1), se = FALSE, width = 1, col = 1,
  lty = 1, lwd = 1)

Arguments

y1

under first method (when se=FALSE) this value is the lower limit of the error bar. Under the second method (when se=TRUE) this value is the mean of the distribution that will be used to produce error bars (mean +- 1.96 standard deviations).

y2

as above, either the upper limit of the error bar, or the standard deviation of the distribution that will be used to produce error bars.

x

horizontal position of error bars.

se

whether to use values y1 and y2 as mean and standard deviation.

width

length of error bar handles.

col

colour of error bars.

lty

line type of error bars.

lwd

line width of error bars.


bobverity/bobFunctions documentation built on May 12, 2019, 11:29 p.m.