Returns plotting symbols matched to cr_palette(), so that a grouping
encoded by hue is also encoded by shape. Filled shapes (21:25, which take
both a colour and a fill) come first, then open shapes.
Arguments
- n
Number of shapes to return.
NULL(default) returns all 10. Requesting more recycles and warns, because shape has then stopped separating the levels.- names
Optional character vector of names to attach, for use as the
valuesargument ofggplot2::scale_shape_manual().
See also
cr_palette(), cr_scale_group()
Other plot design:
cr_palette(),
cr_scale_group(),
cr_theme()
Examples
cr_shapes(4)
#> [1] 21 22 23 24
cr_shapes(3, names = c("low", "mid", "high"))
#> low mid high
#> 21 22 23