Re: [R] heatmap with levelplot

2009-01-26 Thread Antje
I played a little bit around and got the following solution which works for now, though it seems to be too complicated to me. If anybody else know another solution - please let me know!!! library(lattice) my.mat <- matrix(rnorm(800), nrow = 40) colorFun <- colorRampPalette(c("yellow","red"))

Re: [R] heatmap with levelplot

2009-01-26 Thread Antje
I played a little bit around and got the following solution which works for now, though it seems to be too complicated to me. If anybody else know another solution - please let me know!!! library(lattice) my.mat <- matrix(rnorm(800), nrow = 40) colorFun <- colorRampPalette(c("yellow","red")) b

[R] heatmap with levelplot

2009-01-26 Thread Antje
Hi there, I'd like to create a heatmap from my matrix with a) a defined color range (lets say from yellow to red) b) using striking colors above and below a certain threshold (above = "green", below = "blue") Example matrix (there should be a few outliers generated...) + simple levelplot with