barploterrbar {ddCt} | R Documentation

## Barplot with error bars.

### Description

Barplot with error bars.

### Usage

    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, ...)

### Arguments

`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.
`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 `barplot`.

### Details

The function calls `barplot` with `y` and decorates it with error bars according to `yl` and `yh`.

### Value

The function is called for its side effect, producing a plot.

### Author(s)

Markus Ruschhaupt, Florian Hahne

### See Also

`barplot`

### Examples

      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")

[Package ddCt version 1.48.0 Index]