multiRamp: A multiple-ramp colour scheme

Description Usage Arguments Details Value Author(s) Examples

View source: R/multiRamp.R

Description

A colour scheme that combines a number of interpolated ramps.

Usage

1
multiRamp(ranges, rampSpec, ...)

Arguments

ranges

A two-column matrix, each row being the min and max of the ramp

rampSpec

A list of vectors of colours for each ramp

...

Currently ignored.

Details

This function returns a colour scheme that consists of a number of ramps such as created by rampInterpolate. It is useful when your colour scheme has a number of discrete parts, for example when colouring elevations on a map to show water, land, and ice, or when you want to show a definite horizon at a specific value.

Value

A colourscheme function.

Author(s)

Barry Rowlingson <b.rowlingson@lancaster.ac.uk>

Examples

1
2
3
4
# topological colour scheme - water, land, ice:
tramp = multiRamp(rbind(c(-2000,0),c(0,1000),c(1000,9000)),
 list(c("black","blue"),c("green","brown"),c("gray70","gray70"))
 )

colourschemes documentation built on May 2, 2019, 4:56 p.m.