temperature.colors | R Documentation |
Create a vector of 'temperature' colors (from blue over white to red).
temperature.colors(mn, mx = NULL, intensity = 1)
mn |
integer: when |
mx |
integer: 'warmest' temperature (see examples) |
intensity |
saturation of the most extreme color(s), in the range |
gray
, hsv
, rainbow
# full intensity
image(as.matrix(1:7), z=as.matrix(1:7), col=temperature.colors(7))
# half intensity
image(as.matrix(1:7), z=as.matrix(1:7), col=temperature.colors(7, intensity=0.5))
# skewed palette with more negative than positive temperature colors
image(as.matrix(1:7), z=as.matrix(1:7), col=temperature.colors(-4, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.