\HeaderA{plot.lda}{Plot Method for Class 'lda'}{plot.lda}
\keyword{hplot}{plot.lda}
\keyword{multivariate}{plot.lda}
\begin{Description}\relax
Plots a set of data on one, two or more linear discriminants.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'lda':
plot(x, panel = panel.lda, ..., cex = 0.7, dimen,
     abbrev = FALSE, xlab = "LD1", ylab = "LD2")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An object of class \code{"lda"}.

\item[\code{panel}] the panel function used to plot the data.

\item[\code{...}] additional arguments to \code{pairs}, \code{ldahist} or \code{eqscplot}.

\item[\code{cex}] graphics parameter \code{cex} for labels on plots.

\item[\code{dimen}] The number of linear discriminants to be used for the plot; if this
exceeds the number determined by \code{x} the smaller value is used.

\item[\code{abbrev}] whether the group labels are abbreviated on the plots. If \code{abbrev > 0}
this gives \code{minlength} in the call to \code{abbreviate}.

\item[\code{xlab}] label for the x axis

\item[\code{ylab}] label for the y axis

\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function is a method for the generic function
\code{plot()} for class \code{"lda"}.
It can be invoked by calling \code{plot(x)} for an
object \code{x} of the appropriate class, or directly by
calling \code{plot.lda(x)} regardless of the
class of the object.

The behaviour is determined by the value of \code{dimen}. For
\code{dimen > 2}, a \code{pairs} plot is used. For \code{dimen = 2}, an
equiscaled scatter plot is drawn. For \code{dimen = 1}, a set of
histograms or density plots are drawn.  Use argument \code{type} to
match \code{"histogram"} or \code{"density"} or \code{"both"}.
\end{Details}
\begin{References}\relax
Venables, W. N. and Ripley, B. D. (2002)
\emph{Modern Applied Statistics with S.} Fourth edition.  Springer.
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{pairs.lda}{pairs.lda}}, \code{\LinkA{ldahist}{ldahist}}, \code{\LinkA{lda}{lda}}, \code{\LinkA{predict.lda}{predict.lda}}
\end{SeeAlso}

