Re: [R] Heatmap.2 - eliminate cluster and dendrogram

From: Peter Scacheri <>
Date: Thu, 15 May 2008 10:07:50 -0400

Thanks Matthias,

I tried that, but received the following error message:

Error in image.default(1:nc, 1:nr, x, xlim = 0.5 + c(0, nc), ylim = 0.5 + :

         dimensions of z are not length(x)(+1) times length(y)(+1)


At 10:18 AM +0200 5/15/08, Matthias Kohl wrote:
>Dear Peter,
>heatmap.2(z, dendrogram = "none", Rowv = FALSE, Colv = FALSE)
>should do what you want.
>Peter Scacheri wrote:
>>Using the heatmap.2 function, I am trying to generate a heatmap of
>>a 2 column x 500 row matrix of numeric values. I would like the
>>1st column of the matrix sorted from the highest to the lowest
>>values - so that the colors reflected in the first column of the
>>heatmap (top to bottom) go from red to green.
>>After sorting the matrix (z), I tried the following command, but
>>the data remains clustered.
>>I also tried the following, but the data remained clustered.
>>Thanks so much,
>> mailing list
>>PLEASE do read the posting guide
>>and provide commented, minimal, self-contained, reproducible code.
>Dr. Matthias Kohl
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 15 May 2008 - 18:58:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 15 May 2008 - 21:30:45 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive