Re: [R] heatmap on pre-established hclust output?

From: James W. MacDonald <jmacdon_at_med.umich.edu>
Date: Fri, 16 May 2008 12:28:08 -0400

You just have to pass in the *dendrogram* to heatmap() or heatmap.2().

So if you have an hclust object for the rows and columns (called, say rhclust and chclust):

heatmap(datamatrix, Rowv = as.dendrogram(rhclust), Colv = as.dendrogram(chclust), otherargs)

Best,

Jim

Johannes Graumann wrote:
> Hi,
>
> Can someone please guide me towards how to produce "heatmap" output from the
> output of "hclust" run prior to the actual "heatmap" call? I have some
> rather lengthy clustering going on and tweeking the visual output
> with "heatmap" recalculating the clustering every time is not feasible.
>
> Thanks, Joh
>
> ______________________________________________
> 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.

-- 
James W. MacDonald, M.S.
Biostatistician
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623

______________________________________________
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.
Received on Fri 16 May 2008 - 17:20:34 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 Fri 16 May 2008 - 17:30:37 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive