NSW goverment branding colour scale for ggplot2
moh_ggplot.Rd
A number of colours from https://www.digital.nsw.gov.au/design-system/style/colour
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.