The R Project SVN R

Rev

Rev 59039 | Rev 67599 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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