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