OSP Shape Scale
scale_shape_osp.RdDiscrete shape scale that automatically assigns shapes from
ospShapeNames in order based on the number of factor levels.
Equivalent to ggplot2::scale_shape().
If there are more levels than available shapes, shapes are recycled and a warning is issued.
Arguments
- ...
Passed to
ggplot2::discrete_scale.
See also
Other shapes:
Shapes,
ospShapeNames,
scale_shape_osp_identity(),
scale_shape_osp_manual()
Examples
library(ggplot2)
df <- data.frame(x = 1:3, y = 1:3, group = c("A", "B", "C"))
ggplot(df, aes(x, y, shape = group)) +
geom_point_osp(size = 4) +
scale_shape_osp()