Learn R Programming

ggthemes (version 3.5.0)

cleveland_shape_pal: Shape palette from Cleveland "Elements of Graphing Data" (discrete).

Description

Shape palettes for overlapping and non-overlapping points.

Usage

cleveland_shape_pal(overlap = TRUE)

Arguments

overlap

logical Use the scale for overlapping points?

References

Cleveland WS. The Elements of Graphing Data. Revised Edition. Hobart Press, Summit, NJ, 1994, pp. 154-164, 234-239.

Tremmel, Lothar, (1995) "The Visual Separability of Plotting Symbols in Scatterplots", Journal of Computational and Graphical Statistics, http://www.jstor.org/stable/1390760

See Also

Other shapes: circlefill_shape_pal, scale_shape_circlefill, scale_shape_cleveland, scale_shape_tremmel, tremmel_shape_pal

Examples

Run this code
# NOT RUN {
###   (discrete).


library("ggplot2")
p <- ggplot(mtcars) +
     geom_point(aes(x = wt, y = mpg, shape = factor(gear))) +
     facet_wrap(~am) +
     theme_bw()
# overlapping symbol palette
p + scale_shape_cleveland()
# non-overlapping symbol palette
p + scale_shape_cleveland(overlap = FALSE)
# }

Run the code above in your browser using DataLab