| setup_colour_palette | R Documentation |
Internal helper function to generate or validate colour palettes for experimental design plots. Supports predefined palettes (ColorBrewer, Viridis) or custom colours.
setup_colour_palette(palette, n)
palette |
Either a single string naming a predefined palette or a vector of custom colours |
n |
Integer number of required palette length |
Character vector of hex colour codes of length n
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.