Skip to contents

Colorblind-safe discrete colour / fill scales for ggplot2

Usage

scale_color_physio(...)

scale_colour_physio(...)

scale_fill_physio(...)

Arguments

...

Passed to ggplot2::discrete_scale().

Value

A ggplot2 discrete scale using physioPalette.

Examples

if (requireNamespace("ggplot2", quietly = TRUE)) {
  p <- ggplot2::ggplot(
      iris,
      ggplot2::aes(Sepal.Length, Sepal.Width, color = Species)) +
    ggplot2::geom_point() + scale_color_physio() + theme_physio()
}