rwmGetColours: Internal function to choose map colours for classified data

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Internal function to choose map colours for classified data.

Usage

1
rwmGetColours(colourPalette, numColours)

Arguments

colourPalette

string describing the colour palette to use, choice of:

  1. "palette" for the current palette

  2. a vector of valid colours, e.g. =c('red','white','blue') or output from RColourBrewer

  3. one of "heat", "diverging", "white2Black", "black2White", "topo", "rainbow", "terrain", "negpos8", "negpos9"

numColours

the number of colour categories desired

Details

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.

Value

A vector specifiying a number of colours.

Author(s)

andy south and matthew staines

See Also

RColorBrewer

Examples

1
#rwmGetColours(colourPalette='topo', numColours=10)

rworldmap documentation built on May 2, 2019, 4:50 p.m.