Skip to content
Prev 106518 / 398513 Next

heatmap with levelplot?

On 12/22/06, Yuli Zhou <yul.zhou at gmail.com> wrote:
The changepoints are defined by 'at', and the colors are chosen more
or less linearly, so you need to make sure 0 is near the center of
your 'at'. E.g.

levelplot(cor(mtcars), at = seq(-1.01, 1.01, length = 20))
Sure, e.g.

bluered = colorRampPalette(c("red", "white", "blue"), space = "Lab")
levelplot(volcano, col.regions = bluered(100), cuts = 99)