powered by
Like the grayplot function, but with one axis assumed to be categorical.
grayplot
dotplot(group, y, jiggle = NULL, rotate = FALSE, ...)
Categorical coordinates for the plot
Coordinates of points in the plot
Vector of amounts to jiggle the points horizontally, or a character string ("fixed" or "random") indicating the jiggling method; see jiggle.
"fixed"
"random"
jiggle
If TRUE, have group as y-axis; default (FALSE) has group on x-axis.
Optional graphics arguments
None.
Calls grayplot with special choices of graphics parameters for the case of categorical x.
grayplot,
# NOT RUN { x <- rnorm(40, c(1,3)) g <- rep(c("A", "B"), 20) dotplot(g, x) dotplot(g, x, "random") dotplot(g, x, runif(length(g), -0.25, 0.25)) # }
Run the code above in your browser using DataLab