ColorPal: Default color palette

Description Usage Arguments Value Author(s) See Also

Description

Wrapper to obtain my default colour palette for filled contour plots, etc.

Usage

1
ColorPal(RCB.pal = "RdYlBu", n = 10)

Arguments

RCB.pal

a palette name from the RColorBrewer lists; defaults to the diverging RdYlBu palette.

n

number of different colours in the palette, minimum 3, maximum depending on the palette. Default is 10 for RdYlBu.

Value

a function that takes an integer argument (the required number of colours) and returns a character vector of colours.

Author(s)

Thomas Münch

See Also

colorRampPalette; RColorBrewer::brewer.pal


thomas-muench/tmlibr documentation built on May 26, 2019, 10:36 a.m.