demPal: DEM and river color palettes

Description Usage Arguments Value Author(s) See Also Examples

Description

DEM and river color palettes

Usage

1
2
3
demPal(logbase = 1.02, n = 100, ...)

rivPal(logbase = 1, n = 150, ...)

Arguments

logbase

Numerical: stretch colors so that differences in small values become more apparent. 1 to use original terrain.colors. DEFAULT: 1.02 (demPal), 1 (rivPal)

n

Number of colors to be used in palette. Not exactly n if logbase != 1. DEFAULT: 100 (demPal), 150 (rivPal)

...

Further arguments passed to berryFunctions::seqPal

Value

color Palette

Author(s)

Berry Boessenkool, berry-b@gmx.de, Mar 2017

See Also

seqPal, terrain.colors

Examples

1
2
3
4
5
image(volcano, col=rivPal() )
op <- par(mfcol=c(3,3), mar=c(0,0.3,0,0.3), ann=FALSE)
for(l in seq(0.96, 1.04, 0.01))
   {image(volcano, col=demPal(l), axes=FALSE)
   legend("topright", legend=l)}

brry/mhmVis documentation built on May 13, 2019, 7:53 a.m.