Learn R Programming

SwathXtend (version 1.0.0)

plotErrorBarsLines: Utility for clustering plots to plot lines and an overall trend

Description

Prints faint lines for each profile, and a mean/error bars

Usage

plotErrorBarsLines(v, barSizes, lines, labels = NULL, col = "blue", ylim, ...)

Arguments

v
Overall trend, to be printed solid, length n
barSizes
Size of the error bars, length n
lines
Matrix of n columns, and as many rows as lines
labels
Labels to be printed on the x axis, length n
col
Colour for main trend line
ylim
Can specfy limits so several graphs are on the same scale
...
Additional parameters to pass in

Value

No returned value; plot only.

Details

References

See Also

help, ~~~

Examples

Run this code
mat = matrix(rnorm(100), 10)
plotErrorBarsLines(apply(mat,1,FUN=mean), apply(mat,1,FUN=sd), 
	lines=mat, col="red", main="A random plot", xlab="Some label")


Run the code above in your browser using DataLab