Set the root for a dendrogram
0
2
Entering edit mode
5.1 years ago
paolo002 ▴ 160

Hi I have a data which is a binary matrix and I have generated a cluster dendrogram with the hclust function in R. First I normalise the values and then I plot. This is the code:

mat.norm <- t(df / sqrt(2*rowSums(df)))
plot(hclust(dist(mat.norm, "euclidean")))

My data consist of 9 columns and the dendrogram is plotted for all the values of the 9 columns. Does anybody know if it possible to fix one of those column and use it as a root of the dendrogram?

R • 1.3k views
ADD COMMENT

Login before adding your answer.

Traffic: 1913 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