getHeatColors.Colors: Creates heat colors from data

Description Usage Arguments Value Author(s) See Also Examples

Description

Generated heat colors from a vector of values specified by argument x. The interval the values can span can be specified by the argument x.range. Everything outside the range is safely thresholded. If x.range is NULL, the range of x will be used. The interval of the grayscale generated can be specified by the argument dim.range. By default this is the full grayscale range, i.e. [0,1].

The returned colors has the same dimensions as argument x.

Usage

1
Colors$getHeatColors(x, x.range=NULL, dim.range=NULL, ncolors=256, ...)

Arguments

x

A matrix of size N, where N is the number of data values.

x.range

A vector of length two.

dim.range

A vector of length two.

ncolors

Maximum number of unique colors to generate. Default value is 256.

...

Not used.

Value

Returns a vector of character strings of length equal to the number of rows (or the length) of x. The resulting vector contains character strings of format "#nnnnnn" where n is a hexadecimal digit.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

*getGray(), *getHSV(), *getRGB(). palette. For more information see Colors.

Examples

1
## Not run: See help(Color.getGray) for an example.

HenrikBengtsson/R.graphics documentation built on May 6, 2019, 11:53 p.m.