error_bar: Draw error bars

Description Usage Arguments Details Author(s) References

Description

Draw error bars on an existing plot

Usage

1
error_bar(x, y, upper, lower=upper, length=0.05, dir='y',...)

Arguments

x

A numeric. The x position

y

A numeric. The y position

upper, lower

A numeric. The value to add (upper) and subtract (lower) to y (or x, depending on the direction).

length

A numeric. The length of the edges of the arrowhead (as defined by arrows)

dir

A string. The direction of the error bars (either 'x' or 'y')

...

Additional arguments passed to arrows

Details

Note that upper and lower are added / substracted from y (or x, depending on direction). So a smart call to error_bar might be:

error_bar(x,y,sd(y))

Author(s)

Daniel Pritchard

References

Adapted from here: http://monkeysuncle.stanford.edu/?p=485


dpritchard/takiwaR documentation built on May 15, 2019, 1:50 p.m.