Skip to content
Prev 78265 / 398502 Next

heatmap

On Mon, 3 Oct 2005, Romain Francois wrote:

            
Or roll your own in base:
function (n) 
{
    x <- ramp(seq(0, 1, length = n))
    rgb(x[, 1], x[, 2], x[, 3], max = 255)
}
<environment: 0x9a5792c>
[1] "#0000FF" "#1200EC" "#2400DA" "#3600C8" "#4800B6" "#5B00A3" "#6D0091"
 [8] "#7F007F" "#91006D" "#A3005B" "#B60048" "#C80036" "#DA0024" "#EC0012"
[15] "#FF0000"