Question: Set the root for a dendrogram
gravatar for paolo002
20 months ago by
paolo002160 wrote:

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 • 569 views
ADD COMMENTlink modified 20 months ago by Biostar ♦♦ 20 • written 20 months ago by paolo002160
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1381 users visited in the last hour