Question: Set the root for a dendrogram
gravatar for paolo002
12 months ago by
paolo002150 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 • 364 views
ADD COMMENTlink modified 11 months ago by Biostar ♦♦ 20 • written 12 months ago by paolo002150
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: 1252 users visited in the last hour