[R] heatmap-how to change the order of the rows (genes)

Mike Marchywka marchywka at hotmail.com
Wed Feb 9 18:25:05 CET 2011




----------------------------------------
> Date: Wed, 9 Feb 2011 12:18:57 -0500
> From: yanliusun at gmail.com
> To: r-help at r-project.org
> Subject: [R] heatmap-how to change the order of the rows (genes)
>
> Hi,
>
> I have a question about the heatmap dendrogram in R. I loaded my data
> matrix in command heatmap(), and it gave me a heatmap accordingly, and the
> rows (genes) also were clustered accordingly. But now I don't want the
> genes clustered in that way, I have a new order of these genes, and want the
> rows of the heatmap are drawed as the order I give. Could anybody help me
[[elided Hotmail spam]]
>



?heatmap 

Rowv=NA 
or
Colv=NA

but first time I tried this something didn't work but
I think eventually it did work for me with both, not sure
if you have problem with one only.



> Yan
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
 		 	   		  


More information about the R-help mailing list