Description Usage Arguments Details Value Note Author(s) References See Also Examples
Displays an onedimensional scatter plot with stacking similar to stemandleaf plot or histograms.
1 2 3 4 
x 
numeric vector to be displayed. 
y 
numeric. Height of the basis of the plot. 
xlim 
numeric. Range of the x axis. 
xlab 
character string. label for the horizontal axis. 
scatter 
logical. If TRUE a onedimensional scatter plot of x, similar to 
hmax 
numeric. Height of the highest dot.

base 
logical. If 
axes 
logical. If 
frame 
logical. If 
pch 
numeric or character. Character number or character to be used for the display. 
pch.size 
numeric. Character to be used to distribute the "dots" ( 
labels 
character vector. If 
hcex 
numeric. Expansion (shrink) factor for character height. See Details. 
cex 
numeric. Expansion factor used for character display.
See 
cex.axis 
numeric. Expansion factor used in case of labelling the axis. 
... 
additional graphical parameters. 
Basically function dotPlot
calls function dots to display
a stacked onedimensional scatter plot within vertical limits 0 and 1.
See dots
for more details.
The function is called for its side effect which is to produce onedimensional scatter plot with stacking as described, for example, in Chambers et al. (1983) It returns invisible a data frame with the actual coordinates (in users units).
Since the dots are stacked vertically, their alignment is subject to rounding errors. Dots may be slightly moved in either side from their actual value.
Ernesto Barrios
Chambers, J. M., Cleveland, W. S., Kleiner, B. and Tukey, P. A. (1983) Graphical Methods for Data Analysis. New York: Chapman \& Hall
1 2 3 4 5 6 7 8 9 10 11  library(BHH2)
data(tab03B1)
attach(tab03B1)
stem(yield) #stemleaf plot
plt < dotPlot(yield) # equivalent dotPlot
# same dot plot with max and min observations labelled
plt < dotPlot(yield,xlim=c(75,95),xlab="yield",pch.size="x",hcex=1)
text(c(min(yield),max(yield),80),rep(0.05,3),c("min","max",80))
segments(80,min(plt$y),80,max(plt$y),lty=2)
detach()

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.