error_bar: Creates error bars

Description Usage Arguments Examples

View source: R/error_bar.R

Description

This function adds error bars to a bar plot.

Usage

1
error_bar(x, y, upper, lower = upper, length = 0.1, ...)

Arguments

x

locations of bars (normally 1:n_bars).

y

height of bars (pull this from the original plot by assigning the plot output to a variable).

upper

extent of upper errorbar (e.g. compute standard errors and put these here).

lower

extent of lower errorbar defaults to same as upper.

length

width of bars

Examples

1
2
barx<-barplot(1:3)
error_bar(barx, 1:3,c(.1,.1,.1))

neilbramley/acl_source documentation built on May 29, 2019, 6:53 p.m.