Description Usage Arguments Details Value Author(s) See Also Examples
Internal function to choose map colours for classified data.
1 | rwmGetColours(colourPalette, numColours)
|
colourPalette |
string describing the colour palette to use, choice of:
|
numColours |
the number of colour categories desired |
Returns a vector of colours based upon the palette specified and number of colours specified. If colourPalette specifies a number of colours and this is different from numColours, numColours takes precedence and colours are interpolated to make the number fit.
A vector specifiying a number of colours.
andy south and matthew staines
RColorBrewer
1 | #rwmGetColours(colourPalette='topo', numColours=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.