stripchart {base} | R Documentation |
stripchart
produces one dimensional scatter plots (or dot
plots) of the given data. These plots are are good alternative to
boxplot
s when sample sizes are small.
stripchart(x, method="overplot", jitter=0.1, offset=1/3,
vertical=FALSE, group.names,
xlim=NULL, ylim=NULL, main="", ylab="", xlab="",
pch=0, col=par("fg"), cex=par("cex"))
x |
the data from which the plots are to be produced. The data
can be specified as a single vector, or as list of vectors, each
corresponding to a component plot. Alternatively a symbolic
specification of the form |
method |
the method to be used to separate coincident points.
The default method |
jitter |
when jittering is used, |
offset |
when stacking is used, points are stacked this many line-heights (symbol widths) apart. |
vertical |
when vertical is |
group.names |
group labels which will be printed alongside (or underneath) each plot. |
xlim , ylim , main , ylab , xlab , pch , col , cex |
Graphical parameters. |
Extensive examples of the use of this kind of plot can be found in Box, Hunter and Hunter or Seber and Wild.
x <- round(rnorm(50), 1)
stripchart(x)