colorize.value | R Documentation |
transforms a value to a color based on a colorscale and a value scale
colorize.value(
val,
rng = c(-1, 1),
colscheme.col.val = c(gplots::colorpanel(100, "blue", "white"), gplots::colorpanel(100,
"white", "red"))
)
val |
value to be transformed |
rng |
value range |
colscheme.col.val |
Color palette to pick a color from |
color of the value
colorize.value(0.5,rng=c(-1,1), colscheme.col.val=c(colorpanel(100,"blue","white"),colorpanel(100,"white","red")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.