[R] Is there a way to print branch distances for hclust function?

kbrownk kbrownk at gmail.com
Mon Dec 12 05:43:00 CET 2011

The R function hclust is used to do cluster analysis, but based on R
help I see no way to print the actual fusion distances (that is, the
vertical distances for each connected branch pairs seen in the cluster

Any ideas? I'd like to use them test for significant differences from
the mean fusion distance (i.e. The Best Cut Test).

To perform a cluster analysis I'm using:

x <- dist(mydata, method = "euclidean") # distance matrix
y <- hclust(x, method="ward") #clustering (i.e. fusion) method
plot(y) # display dendogram


More information about the R-help mailing list