Skip to contents

Identity scale for when data already contains OSP shape names. Use this when your shape column contains values from ospShapeNames directly (e.g., "circle", "diamond", "star"). Equivalent to ggplot2::scale_shape_identity().

Usage

scale_shape_osp_identity(guide = "none", ...)

Arguments

guide

Guide for the legend. Use "legend" to show a legend, or "none" to hide it.

...

Passed to ggplot2::scale_shape_manual.

Value

A ggplot2 scale that can be added to a plot.

Examples

library(ggplot2)
df <- data.frame(x = 1:3, y = 1:3, shape = c("circle", "diamond", "star"))
ggplot(df, aes(x, y, shape = shape)) +
  geom_point_osp(size = 4) +
  scale_shape_osp_identity(guide = "legend")