Skip to contents

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

Usage

moh_colours(..., show_colours = FALSE)

Arguments

...

Integer or characters vector. See details

show_colours

Boolean. If TRUE a barplot of the colours with their names is shown

Details

You can use indicies to select colours, or the colour names themselves. Use moh_colours(show_colours = T) to see what is available

Examples

# show colours and names
moh_colours(show_colours = TRUE)


# Return all colours
moh_colours() # all ten colours
#>  [1] "#002664" "#D7153A" "#00ABE6" "#0A7CB9" "#BFBFBF" "#4F4F4F" "#000000"
#>  [8] "#F9BE00" "#FF7F2F" "#752F8A"

# Return first 4 colours
moh_colours(1:4) # first 4 colours
#> [1] "#002664" "#D7153A" "#00ABE6" "#0A7CB9"

# Return colours by name
moh_colours(c('darkBlue', 'red')) # colours by name ()
#> [1] "#002664" "#D7153A"