barplot.col: Barplot with error bars

Description Usage Arguments Examples

View source: R/barplot.col.R

Description

Returns a barplot based on a given data.frame. The mean value of each column will be calculated and used for the plot. Error bars will be added, using standard error (default) or standard deviation.

Usage

1
2
3
## S3 method for class 'col'
barplot(data, lwd = 1, length = 0.2, err = "ster",
  col = "grey", las = 1)

Arguments

data

a data.frame. Non-numeric columns will be removed.

lwd

line width of the error bars

length

length of error bar heads

err

error bars show standard error (ster) or standard deviation (sd)

Examples

1
2
x <- c(2,4,3,5,NA,5)
sterr(x)

gtimmerhaus/aquaR documentation built on May 17, 2019, 8:57 a.m.