The R Project SVN R

Rev

Rev 71 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71 Rev 286
Line 1... Line 1...
1
\name{dotplot}
1
\name{dotplot}
2
\title{Cleveland Dot Plots}
2
\title{Cleveland Dot Plots}
3
\usage{
3
\usage{
4
dotplot(x, labels = NULL, groups = NULL, gdata = NULL, cex = par("cex"),
4
dotplot(x, labels = NULL, groups = NULL, gdata = NULL, cex = par("cex"),
5
        pch = 21, gpch = 21, bg = par("bg"), color = par("fg"), 
5
        pch = 21, gpch = 21, bg = par("bg"), color = par("fg"),
6
        gcolor = par("fg"), lcolor = "gray", ...)
6
        gcolor = par("fg"), lcolor = "gray", ...)
7
}
7
}
8
\alias{dotplot}
8
\alias{dotplot}
9
\arguments{
9
\arguments{
10
  \item{x}{either a vector or matrix of numeric values
10
  \item{x}{either a vector or matrix of numeric values
Line 15... Line 15...
15
    For vectors the default is to use \code{names(x)} and for
15
    For vectors the default is to use \code{names(x)} and for
16
    matrices the row labels \code{dimnames(x)[[1]]}.}
16
    matrices the row labels \code{dimnames(x)[[1]]}.}
17
  \item{groups}{an optional factor indicating how the
17
  \item{groups}{an optional factor indicating how the
18
    elements of \code{x} are grouped.
18
    elements of \code{x} are grouped.
19
    If \code{x} is a matrix, \code{groups} will default to the columns
19
    If \code{x} is a matrix, \code{groups} will default to the columns
20
    of \code{x}.} 
20
    of \code{x}.}
21
  \item{gdata}{data values for the groups.
21
  \item{gdata}{data values for the groups.
22
    This is typically a summary such as the median or mean
22
    This is typically a summary such as the median or mean
23
    of each group.}
23
    of each group.}
24
  \item{cex}{the character size to be used.  Setting \code{cex}
24
  \item{cex}{the character size to be used.  Setting \code{cex}
25
    to a value smaller than one can be a useful way of avoiding label
25
    to a value smaller than one can be a useful way of avoiding label
Line 46... Line 46...
46
\examples{
46
\examples{
47
data(deaths)
47
data(deaths)
48
dotplot(deaths, main = "Death Rates in Virginia - 1940")
48
dotplot(deaths, main = "Death Rates in Virginia - 1940")
49
dotplot(t(deaths), main = "Death Rates in Virginia - 1940")
49
dotplot(t(deaths), main = "Death Rates in Virginia - 1940")
50
}
50
}
-
 
51
\keyword{hplot}