\HeaderA{maLegendLines}{Add a legend to a plot}{maLegendLines}
\keyword{aplot}{maLegendLines}
\begin{Description}\relax
This function may be used to add a legend for lines in plots such as those produced by \code{\LinkA{plot}{plot}}, \code{\LinkA{maPlot}{maPlot}}, or \code{\LinkA{maPlot.func}{maPlot.func}}.
\end{Description}
\begin{Usage}
\begin{verbatim}
maLegendLines(legend="", col=2, lty=1, lwd=2.5, ncol=1, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{legend}] A vector of "character" strings to appear in the legend.
\item[\code{col}] Line colors for the legend.
\item[\code{lty}] Line types for the legend.
\item[\code{lwd}] Line widths for the legend.
\item[\code{ncol}] The number of columns in which to set the legend items (default is 1, a vertical legend).
\item[\code{...}] Optional graphical parameters, see \code{\LinkA{par}{par}}.
\end{ldescription}
\end{Arguments}
\begin{Value}
A function with bindings for \code{legend}, \code{col}, \code{lty}, \code{lwd}, \code{ncol}, and \code{...}. This latter function takes as arguments \code{x} and \code{y}, the coordinates for the location of the legend on the plot, and it adds the legend to the current plot.
\end{Value}
\begin{Author}\relax
Sandrine Dudoit, \url{http://www.stat.berkeley.edu/~sandrine}.
\end{Author}
\begin{References}\relax
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, \emph{The Analysis of Gene Expression Data: Methods and Software}, Springer, New York.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{legend}{legend}}, \code{\LinkA{maPlot}{maPlot}}, \code{\LinkA{maPlot.func}{maPlot.func}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
# See examples for maPlot.

\end{ExampleCode}
\end{Examples}


