barploterrbar {prada} | R Documentation |
Barplot with error bars.
barploterrbar(y, yl, yh, barcol, errcol, horiz=FALSE, w=0.2, ...)
y |
Numeric vector. |
yl |
Numeric vector of same length as y. |
yh |
Numeric vector of same length as y. |
barcol |
Color of the bars. |
errcol |
Color of the error bars. |
horiz |
Logical. As in barplot . |
w |
Size of the error bar ticks. |
... |
Further arguments that get passed on to
barplot . |
The function calls barplot
with
y
and decorates it with error bars according to yl
and
yh
.
The function is called for its side effect, producing a plot.
Wolfgang Huber http://www.dkfz.de/abt0840/whuber
y <- matrix(runif(80), ncol=5) ym <- apply(y, 2, mean) dy <- apply(y, 2, sd)*2/sqrt(nrow(y)) barploterrbar(ym, ym-dy, ym+dy, barcol="#0000c0", errcol="orange")