Description Usage Arguments Value See Also Examples
These functions return functions (or a list of functions).
The resulting functions, map a matrix of numeric values to a character matrix of colors.
They are designed for rendering single channel images, and also for rendering multiple channels, separately.
(In contrast to rendering a multichannel image, as a single raster image).
1 2 3 4 5 6 7 |
hmin, hmax |
Single numeric values, the min and max hue values. |
c, l |
Single numeric values, the C and L values in HCL color space. |
na.col |
The color returned for NA values. |
col0, col1 |
Strings, the lower and upper colors. |
min, max |
The min and max values to interpolate between. |
reverse |
Logical, if true, it's equivalent to swapping min and max. |
... |
Ignored. |
vt3.linear.shader returns a function.
The others return a list of four functions.
as.raster.SImage, as.raster.MImage
1 2 | colf <- vt3.linear.shader ()
colf (c (0.33, 0.67) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.