Learn R Programming

ggthemes (version 2.1.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
# overlapping symbol palette
dsamp <- diamonds[sample(nrow(diamonds), 100), ]
(qplot(carat, price, data=dsamp, shape=cut)
+ theme_bw() + scale_shape_cleveland())
# non-overlapping symbol palette
(qplot(carat, price, data=dsamp, shape=cut)
+ theme_bw() + scale_shape_cleveland(overlap=FALSE))

Run the code above in your browser using DataLab