View source: R/general.purpuse.utilities.R
num2col | R Documentation |
Wrapper function for colorRamp. Transforms numbers to the gradient specified by col parameter
num2col(
d,
col = c("blue", "cyan", "gray", "orange", "red"),
minx = min(d, na.rm = TRUE),
maxx = max(d, na.rm = TRUE)
)
d |
numbers to be transformed |
col |
colours to form gradient (blue-red by default) |
minx , maxx |
range of x values (min(x),max(x) by default) |
vector of colours (same length as d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.