[R] Heatmap.2 - eliminate cluster and dendrogram

Matthias Kohl Matthias.Kohl at stamats.de
Thu May 15 10:18:05 CEST 2008


Dear Peter,

heatmap.2(z, dendrogram = "none", Rowv = FALSE, Colv = FALSE)

should do what you want.

Best,
Matthias

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.
>
> heatmap.2((z),col=greenred(100),dendrogram=NULL,Rowv=FALSE)
>
> I also tried the following, but the data remained clustered.
>
> heatmap.2((z),col=greenred(100),Colv=1:ncol(z))
>
> ANY IDEAS??
> Thanks so much,
> Peter
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Dr. Matthias Kohl
www.stamats.de



More information about the R-help mailing list