Description Usage Arguments Value Author(s) See Also
Wrapper to obtain my default colour palette for filled contour plots, etc.
1 | ColorPal(RCB.pal = "RdYlBu", n = 10)
|
RCB.pal |
a palette name from the RColorBrewer lists; defaults to the
diverging |
n |
number of different colours in the palette, minimum 3, maximum
depending on the palette. Default is |
a function that takes an integer argument (the required number of colours) and returns a character vector of colours.
Thomas Münch
colorRampPalette
;
RColorBrewer::brewer.pal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.