visColormap: Function to define a colormap

Description Usage Arguments Value Note See Also Examples

View source: R/visColormap.r

Description

visColormap is supposed to define a colormap. It returns a function, which will take an integer argument specifying how many colors interpolate the given colormap.

Usage

1
2
3
visColormap(colormap = c("bwr", "jet", "gbr", "wyr", "br", "yr",
"rainbow",
"wb"))

Arguments

colormap

short name for the colormap

Value

Note

The input colormap includes:

See Also

visColoralpha

Examples

1
2
3
4
5
# 1) define "blue-white-red" colormap
palette.name <- visColormap(colormap="bwr")

# 2) use the return function "palette.name" to generate 10 colors spanning "bwr"
palette.name(10)

supraHex documentation built on May 21, 2017, 12:34 a.m.

Search within the supraHex package
Search all R packages, documentation and source code