Learn R Programming

broman (version 0.68-2)

dotplot: Dot chart with a gray background

Description

Like the grayplot function, but with one axis assumed to be categorical.

Usage

dotplot(group, y, jiggle = NULL, rotate = FALSE, ...)

Arguments

group

Categorical coordinates for the plot

y

Coordinates of points in the plot

jiggle

Vector of amounts to jiggle the points horizontally, or a character string ("fixed" or "random") indicating the jiggling method; see jiggle.

rotate

If TRUE, have group as y-axis; default (FALSE) has group on x-axis.

...

Optional graphics arguments

Value

None.

Details

Calls grayplot with special choices of graphics parameters for the case of categorical x.

See Also

grayplot,

Examples

Run this code
# 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