Description Usage Arguments Value
Maps a vector x to a colormap and returns the RGB values
1 2 | map2colormap(x, xmax = NA, symmetric = NA, cmap = colorRamp(c("blue",
"white", "red")), na_col = "cornsilk3")
|
x |
values to be mapped |
xmax |
maximum value to be mapped |
symmetric |
if T the map will be symmetric from -xmax to xmax centered arround 0 |
cmap |
a colormap, e.g. from colorRamp |
na_col |
what color should NA have (name or RGB) |
returns the values mapped
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.