Add NOAA theming to ggplot2 object. The palette is from the 'viridis' package, which contains palettes distinguishable by those with color vision deficiency.

theme_noaa(discrete = TRUE, ...)

Arguments

discrete

Variable indicating whether the color or fill aesthetic is discrete. Default is TRUE.

...

Arguments passed to `ggplot2::theme()`.

Value

A list applying a theme to a ggplot2 object.

Examples

ggplot2::ggplot(data = OrchardSprays,
                ggplot2::aes(x = rowpos, 
                             y = decrease,
                             color = treatment)) +
  ggplot2::geom_point() +
  theme_noaa()