Skip to contents

A number of colours from https://www.digital.nsw.gov.au/design-system/style/colour

Usage

scale_fill_moh()

scale_colour_moh()

Functions

  • scale_fill_moh(): Scale fill

  • scale_colour_moh(): Scale color

Examples


require(ggplot2)
#> Loading required package: ggplot2

ggplot(
 data.frame(
   names = c('darkBlue', 'red', 'lightBlue',
             'medBlue', 'lightGrey', 'darkGrey',
             'black', 'yellow', 'orange', 'purple'),
   vals = rep(1,10)),
 aes(x = names, y = vals, fill = names)) +
 geom_col() +
 scale_fill_moh() +
 theme_void()


ggplot(
 data.frame(
   names = c('darkBlue', 'red', 'lightBlue',
             'medBlue', 'lightGrey', 'darkGrey',
             'black', 'yellow', 'orange', 'purple'),
   vals = rep(1,10)),
 aes(x = names, y = vals, colour = names)) +
 geom_col(size = 3, fill = 'white') +
 scale_colour_moh() +
 theme_void()
#> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
#>  Please use `linewidth` instead.