\HeaderA{boxplot.matrix}{Draw a Boxplot for each Column (Row) of a Matrix}{boxplot.matrix}
\keyword{hplot}{boxplot.matrix}
\begin{Description}\relax
Interpreting the columns (or rows) of a matrix as different groups, draw a
boxplot for each.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'matrix':
boxplot(x, use.cols = TRUE, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a numeric matrix.
\item[\code{use.cols}] logical indicating if columns (by default) or rows
(\code{use.cols=FALSE}) should be plotted.
\item[\code{...}] Further arguments to \code{\LinkA{boxplot}{boxplot}}.
\end{ldescription}
\end{Arguments}
\begin{Value}
A list as for \code{\LinkA{boxplot}{boxplot}}.
\end{Value}
\begin{Author}\relax
Martin Maechler, 1995, for S+, then \R{} package \pkg{sfsmisc}.
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{boxplot.default}{boxplot.default}} which already works nowadays with
data.frames; \code{\LinkA{boxplot.formula}{boxplot.formula}}, \code{\LinkA{plot.factor}{plot.factor}} which
work with (the more general concept) of a grouping factor.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Very similar to the example in ?boxplot
mat <- cbind(Uni05 = (1:100)/21, Norm = rnorm(100),
             T5 = rt(100, df = 5), Gam2 = rgamma(100, shape = 2))
boxplot(mat, main = "boxplot.matrix(...., main = ...)",
        notch = TRUE, col = 1:4)
\end{ExampleCode}
\end{Examples}

