unlimithealth_colours | R Documentation |
Colours are assigned according to the order in the palette. If variable has more levels than specified in palette, colourRamp to generate additional colours matching the palette. The skip argument is optional but useful where some IUs are not treated
uh_cols(...)
uh_palettes
uh_pal(palette = "all", reverse = FALSE, skip, ...)
scale_color_uh(palette = "all", discrete = TRUE, reverse = FALSE, skip, ...)
scale_colour_uh(palette = "all", discrete = TRUE, reverse = FALSE, skip, ...)
scale_fill_uh(palette = "all", discrete = TRUE, reverse = FALSE, skip, ...)
... |
Other arguments passed on to ggplot2 scale function to control limits, breaks and labels etc. |
palette |
A palette name from one of:
|
reverse |
Reserve the direction of the palette? Default is FALSE. |
skip |
A numeric vector. Index/Indices of colours in the palette to be skipped over. |
discrete |
Default is TRUE. FALSE if a continuous colour gradient is required. |
An object of class list
of length 7.
uh_pal(palette= "primary")(2)
scale_colour_uh(palette="main",skip = 3) skip is specified and the 3rd colour in the main palette will be skipped
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.