Emphasize a level or interval of a colour palette
emphasize_pal_colour(n, k, cat = TRUE, ncat = 5, fn)
the number of colours to draw from the palette
the index of the colour to emphasize
logical indicator if palette is categorical or numeric
the number of intervals to use for continuous palettes
the colour palette function to use
a colour palette, with one level emphasized (or range for numeric)
# NOT RUN { pal <- inzpalette("bright") plot(1:5, pch = 19, col = emphasize_pal_colour(5, 2, fn = pal)) # }
Run the code above in your browser using DataLab