Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

maLegendLines

Add a legend to a plot


Description

This function may be used to add a legend for lines in plots such as those produced by plot, maPlot, or maPlot.func.

Usage

maLegendLines(legend="", col=2, lty=1, lwd=2.5, ncol=1, ...)

Arguments

legend

A vector of "character" strings to appear in the legend.

col

Line colors for the legend.

lty

Line types for the legend.

lwd

Line widths for the legend.

ncol

The number of columns in which to set the legend items (default is 1, a vertical legend).

...

Optional graphical parameters, see par.

Value

A function with bindings for legend, col, lty, lwd, ncol, and .... This latter function takes as arguments x and y, the coordinates for the location of the legend on the plot, and it adds the legend to the current plot.

Author(s)

References

S. Dudoit and Y. H. Yang. (2002). Bioconductor R packages for exploratory analysis and normalization of cDNA microarray data. In G. Parmigiani, E. S. Garrett, R. A. Irizarry and S. L. Zeger, editors, The Analysis of Gene Expression Data: Methods and Software, Springer, New York.

See Also

Examples

# See examples for maPlot.

marray

Exploratory analysis for two-color spotted microarray data

v1.68.0
LGPL
Authors
Yee Hwa (Jean) Yang <jeany@maths.usyd.edu.au> with contributions from Agnes Paquet and Sandrine Dudoit.
Initial release
2009-08-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.