scale_discrete_onsv: Apply ONSV color scale to ggplot object

View source: R/scale_discrete_onsv.R

scale_discrete_onsvR Documentation

Apply ONSV color scale to ggplot object

Description

scale_discrete_onsv() is used to apply the ONSV color scale to a ggplot graphics

Usage

scale_discrete_onsv()

Value

A custom scale object for ggplot objects

Examples

library(ggplot2)

ggplot(data = iris, aes(x = Sepal.Width, y = Sepal.Length, color = Species)) +
  geom_point() +
  theme_onsv() +
  scale_discrete_onsv()

onsvplot documentation built on Sept. 8, 2023, 6:11 p.m.