Height Of The Hcluster Dendrogram In R
2
1
Entering edit mode
12.3 years ago
Shuixia100 ▴ 120

Hi there,

when I tried to do hcluster in R While I am expecting some dissimilarity value of 0 to 1 in the height, I got a Dendrogram like below! Could any one help explain the height in the dendrogram. And how could i get dissimilarity value of 0 to 1 in hcluster of R

hcluster Denrogram

THX in advance, Kylie

r • 8.0k views
ADD COMMENT
1
Entering edit mode
7.1 years ago

My guess is that you have used the default distance metrix of Euclidean distance, distances that can be on a scale that go beyond 0 to 1.

Check the default values of your functions in order to understand the distance metric used.

ADD COMMENT
0
Entering edit mode
12.3 years ago
Thaman ★ 3.3k

I think this should work

plot(hclust(d), hang=1, labels=groups)

ADD COMMENT
0
Entering edit mode

Not working, I thought hang is to control the height between label and the tree but not the height of the Dendrogram

ADD REPLY

Login before adding your answer.

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