The goal of nswtheme is to provide a R tool kit for styles, patterns
and standards following the Digital NSW, NSW Design
System
You can install nswtheme like so:
# CRAN release (not yet!)
# install.packages('nswtheme')
# development version
install.packages('pak')
pak::pak('digitalnsw/nswtheme')In many instances it may be sufficient to set the global theme:
library(ggplot2)
library(nswtheme)
set_theme(theme_nsw())
ggplot(mpg, aes(displ, hwy, colour = class)) +
geom_point()More control is available through palette functions such as
pal_waratah(). See vignette("nswtheme") for usage guidelines.
