maLegendLines {marray} | R Documentation

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

Sandrine Dudoit, http://www.stat.berkeley.edu/~sandrine.

### 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

`legend`, `maPlot`, `maPlot.func`.

### Examples

    # See examples for maPlot.

[Package marray version 1.58.0 Index]