Description Usage Arguments Note References See Also Examples
Shape palettes for overlapping and nonoverlapping points.
1  cleveland_shape_pal(overlap = TRUE)

overlap 

In the Elements of Graphing Data, W.S. Cleveland suggests two shape palettes for scatter plots: one for overlapping data and another for nonoverlapping data. The symbols for overlapping data relies on pattern discrimination, while the symbols for nonoverlapping data vary the amount of fill. This palette attempts to create these palettes. However, I found that these were hard to replicate. Using the R shapes and unicode fonts: the symbols can vary in size, they are dependent of the fonts used, and there does not exist a unicode symbol for a circle with a vertical line. If someone can improve this palette, please let me know.
Following Tremmel (1995), I replace the circle with a vertical line with an encircled plus sign.
The palette cleveland_shape_pal()
supports up to five values.
Cleveland WS. The Elements of Graphing Data. Revised Edition. Hobart Press, Summit, NJ, 1994, pp. 154164, 234239.
Tremmel, Lothar, (1995) "The Visual Separability of Plotting Symbols in Scatterplots", Journal of Computational and Graphical Statistics, http://www.jstor.org/stable/1390760
Other shapes: circlefill_shape_pal
,
scale_shape_circlefill
,
scale_shape_cleveland
,
scale_shape_tremmel
,
tremmel_shape_pal
1 2 3 4 5 6 7 8 9 10 11 12  ### (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()
# nonoverlapping symbol palette
p + scale_shape_cleveland(overlap = FALSE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.