Re: [R] Heatmap without levelplot

2009-05-06 Thread Uwe Ligges
Antje wrote: Hi Uwe, thanks a lot for your answer! And thanks a lot to all others helping me with this issue! Uwe Ligges schrieb: Antje wrote: Hi Uwe, I tried to explain my problem with the given example. I don't see any documentation which tells me that the length of "col.regions" sh

Re: [R] Heatmap without levelplot

2009-05-05 Thread Antje
Hi Uwe, thanks a lot for your answer! And thanks a lot to all others helping me with this issue! Uwe Ligges schrieb: Antje wrote: Hi Uwe, I tried to explain my problem with the given example. I don't see any documentation which tells me that the length of "col.regions" should be one less

Re: [R] Heatmap without levelplot

2009-05-05 Thread Uwe Ligges
Antje wrote: Hi Uwe, I tried to explain my problem with the given example. I don't see any documentation which tells me that the length of "col.regions" should be one less than "at". (At least I assume now that it should be this way...) If it's equal or longer some colors (in the middle of t

Re: [R] Heatmap without levelplot

2009-05-05 Thread Greg Snow
Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Antje > Sent: Tuesday, May 05, 2009 1:12 AM > To: r-h...@stat.math.ethz.ch > Subject: [R] Heatmap without level

Re: [R] Heatmap without levelplot

2009-05-05 Thread Antje
Hi Uwe, I tried to explain my problem with the given example. I don't see any documentation which tells me that the length of "col.regions" should be one less than "at". (At least I assume now that it should be this way...) If it's equal or longer some colors (in the middle of the color-vector)

Re: [R] Heatmap without levelplot

2009-05-05 Thread Uwe Ligges
Antje wrote: Hi there, as I'm not sure to understand the coloring levelplot uses, I'm looking for another easy way to create a heatmap like this: library(lattice) mat <- matrix(seq(1,5, length.out = 12), nrow = 3) mat[1,2] <- 3.5 my.at <- seq(0.5,5.5, length.out = 6) my.col.regions <- rain

Re: [R] Heatmap without levelplot

2009-05-05 Thread Dieter Menne
Antje yahoo.de> writes: > as I'm not sure to understand the coloring levelplot uses, I'm looking for > another easy way to create a heatmap like this: > > library(lattice) > mat <- matrix(seq(1,5, length.out = 12), nrow = 3) > mat[1,2] <- 3.5 > > my.at <- seq(0.5,5.5, length.out = 6) > my.col.

[R] Heatmap without levelplot

2009-05-05 Thread Antje
Hi there, as I'm not sure to understand the coloring levelplot uses, I'm looking for another easy way to create a heatmap like this: library(lattice) mat <- matrix(seq(1,5, length.out = 12), nrow = 3) mat[1,2] <- 3.5 my.at <- seq(0.5,5.5, length.out = 6) my.col.regions <- rainbow(5) graph <-