Shape palette based on the symbol palette in Stata used in scheme s2mono. This palette supports up to 10 values.
Value
A palette function. It takes the number of shapes n and returns an integer vector of n
shape (pch) codes, and can be used as the palette argument of
ggplot2::discrete_scale().
Note
Stata's ten plotting symbols all have a base pch equivalent, so this palette supports ten values on either branch and nothing is dropped: solid and hollow circle, diamond, square and triangle, plus the X and the plus sign.
See also
See scale_shape_stata() for examples.
Other shapes stata:
scale_shape_stata()
Examples
stata_shape_pal()(10)
#> [1] 16 18 15 17 4 3 1 5 0 2
show_shapes(stata_shape_pal()(10))
