su_theme_cols: Strategy Unit Theme Colours

View source: R/su_theme_cols.R

su_theme_colsR Documentation

Strategy Unit Theme Colours

Description

This function returns the colours that are used in the Strategy Unit theme as a named vector of RGB values in hexadecimal form.

Usage

su_theme_cols(
  ...,
  palette = c(NA, "main", "oranges", "charcoals", "slates", "reds", "blues")
)

Arguments

...

individual colours that you wish to get the values of

palette

a name of a palette to select the colours of

Details

If no arguments are passed to the function, then all of the colours are returned. If only specific colours are required, then the names of the colours that are required can be passed as strings to the function, and only those colours will be returned.

If a "pallete" is selected then no arguments should be passed to ...

Only one palete can be selected at a time.

Value

a named vector of RGB colours in hexadecimal form

Examples

# show all of the colours
su_theme_cols()
# or, just show some colours
su_theme_cols("orange", "red", "grey")
# or, select a single palette
su_theme_cols(palette = "slates")

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