Skip to content
Prev 78322 / 398503 Next

heatmap

On Tue, 4 Oct 2005, Jim Lemon wrote:

            
see ?colorRamp and look at:
function (colors, ...) 
{
    ramp <- colorRamp(colors, ...)
    function(n) {
        x <- ramp(seq(0, 1, length = n))
        rgb(x[, 1], x[, 2], x[, 3], max = 255)
    }
}

to see where it comes from. The colorRamp/colorRampPalette combination is 
quite remarkable and lots of fun ...

Roger