Color palette generator
au_color_palette.RdHelper function to generate branded color palettes.
Arguments
- style
String, name of a pre-defined color palette (
light,dark,hotandcold,hotandcold_dark,tracerx), orcustom. The default palette islight.- reverse
Boolean, TRUE will reverse the color order.
- colors
Vector of AU color names. Only used when
style = "custom"is passed in.
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"