dotchart(x, labels = NULL, groups = NULL, gdata = NULL, cex = par("cex"), pch = 21, gpch = 21, bg = par("bg"), color = par("fg"), gcolor = par("fg"), lcolor = "gray", xlim = range(x[is.finite(x)]), main = NULL, xlab = NULL, ylab = NULL, ...)NAs are
    allowed).  If x is a matrix the overall plot consists of
    juxtaposed dotplots for each row.  Inputs which satisfy
    is.numeric(x) but not
    is.vector(x) || is.matrix(x) are coerced by
    as.numeric, with a warning.names(x) and for matrices
    the row labels dimnames(x)[[1]].x are grouped.
    If x is a matrix, groups will default to the columns
    of x.cex
    to a value smaller than one can be a useful way of avoiding label
    overlap.  Unlike many other graphics functions, this sets the actual
    size, not a multiple of par("cex").par(bg= *) to set the background color of
    the whole plot.plot.window, e.g.title.title.Cleveland, W. S. (1985) The Elements of Graphing Data. Monterey, CA: Wadsworth.
Murrell, P. (2005) R Graphics. Chapman & Hall/CRC Press.
dotchart(VADeaths, main = "Death Rates in Virginia - 1940")
op <- par(xaxs = "i")  # 0 -- 100%
dotchart(t(VADeaths), xlim = c(0,100),
         main = "Death Rates in Virginia - 1940")
par(op)
Run the code above in your browser using DataLab