palMODWT: Simple Palette Function for "ssWavelets" and "sampSurf"

Description Usage Arguments Value Author(s) See Also Examples

View source: R/palMODWT.R

Description

This simply gives a pleasing palette with reds for negative (if any) and blues up to brownish for positive; zero should always be white-ish, which was chosen for the background.

Usage

1
palMODWT(n, bias = 5, range = NA, ...)

Arguments

n

The length of the palette vector returned.

bias

Please see colorRampPalette.

range

The range of the variable in question to be displayed.

...

Passed to colorRampPalette.

Value

A vector of length n of colors in the palette.

Author(s)

Jeffrey H. Gove

See Also

colorRampPalette

Examples

1
2
3
4
5
6
7
8
#
# display a simple palette...
#
n = 100
pie(rep(1,n), col=palMODWT(n, range=c(0,100)))
pie(rep(1,n),
    labels = as.character(round(seq(-10, 10, len = n), 1)),
    col = palMODWT(n, range = c(-10, 10)))

ssWavelets documentation built on Aug. 30, 2017, 3:01 a.m.