barploterrbar {ddCt} | R Documentation |
Barplot with error bars.
barploterrbar(y, yl, yh, barcol="orange", errcol="black", horiz=FALSE, w=0.2,theCut=NULL,columnForDiffBars=TRUE,cex.axis = par("cex.axis"),zeroForNA=TRUE,legend=FALSE,groups = NULL, order=FALSE, ...)
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 |
w |
Size of the error bar ticks. |
theCut |
The cut value |
columnForDiffBars |
Whether the matrix should be transposed (by default the rows are for diff bars) |
zeroForNA |
Draw 0 instead of NA |
cex.axis |
Axis font cex |
legend |
Sould a legend be plotted ? |
groups |
a factor - if specified the bars are collored according to the group they belong to |
order |
plot sample values in descending order |
... |
Further arguments that get passed on to
|
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.
Markus Ruschhaupt, Florian Hahne
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")