error.bar: Add error bars to a bar plot

Description Usage Arguments Examples

Description

Add error bars to a bar plot

Usage

1
error.bar(x, y, upper, lower = upper, length = 0.05, ...)

Arguments

x

the barplot x coordinates.

y

the data (height of the bars).

upper

matrix of the different error bar values.

lower

matrix of the different error bar values. By default equals to upper

length

length of the horizontal lines of the error bars

Examples

1
2
3
4
v1  <- c(1:4)
my.x <- barplot(v1)
error <- c(0.2, 1, 0.5, 0.1)
error.bar(x = my.x, y = v1, upper = error)

marionbetizeau/CerebellumAstrocyteSimulation documentation built on May 14, 2019, 7:20 p.m.