Skip to contents

Helper function to generate branded color palettes.

Usage

au_color_palette(style = "light", reverse = FALSE, colors = NA)

Arguments

style

String, name of a pre-defined color palette (light, dark, hotandcold, hotandcold_dark, tracerx), or custom. The default palette is light.

reverse

Boolean, TRUE will reverse the color order.

colors

Vector of AU color names. Only used when style = "custom" is passed in.

Value

A named vector with a pre-defined or custom color palette.

Examples

au_color_palette("hotandcold")
#>      blue     white       red 
#> "#003d73" "#ffffff" "#e2001a" 

au_color_palette("custom", colors = c("yellow", "magenta", "white"))
#>    yellow   magenta     white 
#> "#fabb00" "#e2007a" "#ffffff"