Description Usage Arguments Value Author(s) Examples
data2col provides a mapping from data values to color values by using hsi color space. One can use hueRange, intensityRange, alpha, alpha, numCols, and maxColorValue to adjust the mapping.
Also, missingCol specifies the color to the missing data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
data |
vector of data values |
cols |
a vector of rgb colours or NULL (default). If NULL, cols is constructed from |
hueRange |
numeric vectors with values in [0, 360], it specify the hue range. It does not need to be in ascending order since it is only used in the linear interpolation |
intensityRange |
numeric vectors with values in [0, 1], it specifies the intersity range. It does not need to be in ascending order since it is only used in the linear interpolation |
alpha |
number in [0,1]. It specifies the |
numCols |
number. It specifies the number of colors used to do the mapping, and the higher the value is, the more distinguished between different data values. |
maxColorValue |
number in (0, 255]. giving the maximum of the color values range. |
xLow |
lower value of one's interested range |
origin |
middle value in one's interested range in ( |
xHigh |
higher value of one's interested range |
missingCol |
color character specifying the color for the missing data. It is in the form of "#rrggbbaa", and the default is yellow. |
outRangeCol |
color characters specifying the color for the data outside our interested range. If the |
a vector of color chacacters which can be used to plot
Jiahua Liu, Wayne Oldford
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.