col.scale | R Documentation |
Assign rgb colors to numeric data
Assigns rgb colors to numeric data values in vector "x".. maps scalar values in val.range (default c(0,1)) to a linear color scale of between col.min (default white) and col.max (default black), each which are length 3 vectors or characters. RGB values are scaled between 0 and 1. Values below and above val.min and val.max are mapped to col.max and col.max respectively
col.scale(
x,
val.range = c(0, 1),
col.min = "white",
col.max = "black",
na.col = "white",
invert = F
)
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.