Skip to content
digitalnswPublic

About

R package for NSW Government data visualisations: ggplot2 themes, colours and fonts consistent with the NSW Design System.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

nswtheme

R-CMD-check

The goal of nswtheme is to provide a R tool kit for styles, patterns and standards following the Digital NSW, NSW Design System

Installation

You can install nswtheme like so:

# CRAN release (not yet!)
# install.packages('nswtheme')

# development version
install.packages('pak')
pak::pak('digitalnsw/nswtheme')

Usage

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.

About

R package for NSW Government data visualisations: ggplot2 themes, colours and fonts consistent with the NSW Design System.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages