Question About Heatmap In R
3
3
Entering edit mode
13.0 years ago
Sara ▴ 70

Hi everyone,

I did a heatmap using library(gplots) in R. I have a very nice plot but I don’t know how many clusters are on the plot! is there any function or something for extracting this information ?

Thanks

Sara

heatmap r • 5.7k views
ADD COMMENT
3
Entering edit mode
13.0 years ago
Gjain 5.8k

Hi,

This article should help you : link text

You can also look at this library: heatmap_plus {Heatplus}

ADD COMMENT
0
Entering edit mode
13.0 years ago

Hi Sara, Do you mean you would like to see the dendrogram of your data alongside the heatmap rows/columns? There is a nice walk-through of the documentation of gplot 2.10.1 here.

ADD COMMENT
0
Entering edit mode
13.0 years ago

This question isn't really bioinformatics specific, but...

If you use hclust to define your clusters, then you can do this: http://stackoverflow.com/questions/7227008/retrieving-members-from-a-cluster-using-r

The heatmap.2 function, if you capture the output, should return a dendrogram that you can examine using list syntax...

h<-heatmap.2(as.matrix(USArrests))
labels(h$rowDendrogram[[1]])
labels(h$rowDendrogram[[2]][[2]])
ADD COMMENT

Login before adding your answer.

Traffic: 2732 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6