su_theme_pal: Strategy Unit Theme Palettes

View source: R/su_theme_pal.R

su_theme_palR Documentation

Strategy Unit Theme Palettes

Description

This function returns a palette generated by colorRampPalette from one of the Strategy Unit palettes

Usage

su_theme_pal(
  palette = c("main", "oranges", "charcoals", "slates", "reds", "blues"),
  reverse = FALSE,
  ...
)

Arguments

palette

The name of palette to use

reverse

Optional: boolean value to reverse the palette

...

arguments to pass to colorRamp

Value

A colorRamp function

Examples

su_theme_pal()
# or, specify a paltte
su_theme_pal("oranges")
# a reverse palette
su_theme_pal("slates", TRUE)

The-Strategy-Unit/StrategyUnitTheme documentation built on July 8, 2023, 11:38 p.m.