OSP Shape Manual Scale
scale_shape_osp_manual.RdManual shape scale for explicit mapping of factor levels to OSP shape names.
Equivalent to ggplot2::scale_shape_manual().
Arguments
- values
Named character vector. Names are factor levels; values are entries from
ospShapeNames.- ...
Passed to
ggplot2::scale_shape_manual.
See also
Other shapes:
Shapes,
ospShapeNames,
scale_shape_osp(),
scale_shape_osp_identity()
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_manual(values = c(A = "circle", B = "diamond", C = "star"))