Emphasize a level or interval of a colour palette

emphasize_pal_colour(n, k, cat = TRUE, ncat = 5, fn)

Arguments

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

Value

a colour palette, with one level emphasized (or range for numeric)

Author

Tom Elliott

Examples

pal <- inzpalette("bright")
plot(1:5, pch = 19, col = emphasize_pal_colour(5, 2, fn = pal))