View source: R/colour_nhsbsa.R
palette_nhsbsa | R Documentation |
Generate an accessible and appropriate colour palette for NHSBSA charts that is inline with the NHS identity. Currently supports up to 8 colours.
palette_nhsbsa(palette = NA, reverse = FALSE)
palette |
String type of colour palette. Default is NA, otherwise
should be one one |
reverse |
Boolean, to reverse the palette. Default is FALSE. |
Custom colour can also be defined using a vector of NHS Identity colours with NHSRtheme::get_nhs_colours() or any valid R color, e.g. hex code or named color.
Colour palette
palette_nhsbsa()
palette_nhsbsa(palette = "gender")
palette_nhsbsa(palette = "gradient")
palette_nhsbsa(palette = "highlight")
palette_nhsbsa(palette = NHSRtheme::get_nhs_colours(c("Blue", "AquaGreen")))
palette_nhsbsa(palette = c("red","blue","green"))
palette_nhsbsa(palette = c("red","blue", "#4444ffcc"))
palette_nhsbsa(reverse = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.