Hclust.match | R Documentation |
Counts matches between two hierarchical clusterings
Hclust.match(hc1, hc2, scale=FALSE)
hc1 |
First hclust object |
hc2 |
Second hclust object |
scale |
Scale by the sum size of trees? |
'Hclust.match()' counts matches between two hierarchical clusterings (based on 'cutree()').
Result is a sort of consensus distances. Useful, for example, for clustering heatmaps.
Alexey Shipunov
aa.d1 <- hclust(dist(t(atmospheres))) aa.d2 <- hclust(as.dist(1 - abs(cor(atmospheres, method="spearman"))), method="ward.D") aa12.match <- Hclust.match(aa.d1, aa.d2) heatmap(aa12.match, scale="none")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.