| 46973 |
ripley |
1 |
% File src/library/graphics/man/boxplot.matrix.Rd
|
| 68948 |
ripley |
2 |
% Part of the R package, https://www.R-project.org
|
| 67599 |
ripley |
3 |
% Copyright 2008-2014 R Core Team
|
| 46973 |
ripley |
4 |
% Distributed under GPL 2 or later
|
|
|
5 |
|
| 46770 |
maechler |
6 |
\name{boxplot.matrix}
|
| 56186 |
murdoch |
7 |
\alias{boxplot.matrix}
|
| 46770 |
maechler |
8 |
\title{Draw a Boxplot for each Column (Row) of a Matrix}
|
|
|
9 |
\description{
|
|
|
10 |
Interpreting the columns (or rows) of a matrix as different groups, draw a
|
|
|
11 |
boxplot for each.
|
|
|
12 |
}
|
|
|
13 |
\usage{
|
|
|
14 |
\method{boxplot}{matrix}(x, use.cols = TRUE, \dots)
|
|
|
15 |
}
|
|
|
16 |
\arguments{
|
|
|
17 |
\item{x}{a numeric matrix.}
|
|
|
18 |
\item{use.cols}{logical indicating if columns (by default) or rows
|
| 61153 |
ripley |
19 |
(\code{use.cols = FALSE}) should be plotted.}
|
| 46770 |
maechler |
20 |
\item{\dots}{Further arguments to \code{\link{boxplot}}.}
|
|
|
21 |
}
|
|
|
22 |
\value{
|
|
|
23 |
A list as for \code{\link{boxplot}}.
|
|
|
24 |
}
|
| 57939 |
hornik |
25 |
\author{Martin Maechler, 1995, for S+, then \R package \CRANpkg{sfsmisc}.}
|
| 46770 |
maechler |
26 |
\seealso{\code{\link{boxplot.default}} which already works nowadays with
|
|
|
27 |
data.frames; \code{\link{boxplot.formula}}, \code{\link{plot.factor}} which
|
|
|
28 |
work with (the more general concept) of a grouping factor.
|
|
|
29 |
}
|
|
|
30 |
\examples{
|
|
|
31 |
## Very similar to the example in ?boxplot
|
|
|
32 |
mat <- cbind(Uni05 = (1:100)/21, Norm = rnorm(100),
|
|
|
33 |
T5 = rt(100, df = 5), Gam2 = rgamma(100, shape = 2))
|
|
|
34 |
boxplot(mat, main = "boxplot.matrix(...., main = ...)",
|
|
|
35 |
notch = TRUE, col = 1:4)
|
|
|
36 |
}
|
|
|
37 |
\keyword{hplot}
|