View source: R/colourpalettes.R
emphasize_pal_colour | R Documentation |
Emphasize a level or interval of a colour palette
emphasize_pal_colour(n, k, cat = TRUE, ncat = 5, fn)
n |
the number of colours to draw from the palette |
k |
the index of the colour to emphasize |
cat |
logical indicator if palette is categorical or numeric |
ncat |
the number of intervals to use for continuous palettes |
fn |
the colour palette function to use |
a colour palette, with one level emphasized (or range for numeric)
Tom Elliott
pal <- inzpalette("bright")
plot(1:5, pch = 19, col = emphasize_pal_colour(5, 2, fn = pal))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.