ErrorBars: Add error bars

Description Usage Arguments Author(s) Examples

Description

Add error bars to an existing point plot.

Usage

1
2
ErrorBars(x, y, upper, lower = upper, width = 0.05, col = "black",
  lwd = 1, lty = 1)

Arguments

x

x coordinates of the points for which error bars are to be added.

y

y coordinates of the points for which error bars are to be added.

upper

upper value of the error interval with respect to y.

lower

lower value of the error interval with respect to y; default is to assume symmetric error intervals.

width

the width of the error bar drawing as a fraction of the x user coordinate range (diff(range(par("usr")[1 : 2]))).

col

the colour of the error bars; default "black".

lwd

the line width of the error bars; default 1.

lty

the line type of the error bars; default are solid lines (lty = 1).

Author(s)

Thomas Münch

Examples

1
2
x <- 1 : 10
plot(x); ErrorBars(x, y = x, upper = 2.5, lower = 1)

thomas-muench/tmlibr documentation built on May 26, 2019, 10:36 a.m.