When performing the hierarchical clustering in R with the hclust function. How do you know the height of the final merge?
So to clarify with some R default data:
hc <- hclust(dist(USArrests))
dendrogram1 = as.dendrogram(hc)
plot(hc)
Will result in a variable hc with all clustering info.
And the dendrogram:
As you can see on the dendrogram, the final merge happens at a height > 200 (about 300). But how does the dendrogram know? This info is not in the hc.height variable nor in the dendrogram1 variable. The highest mentioned merge is at 169.
If the dendrogram1 variable does not contain this information, how does the plot function know the merge must occur at a height of 300?
I am asking this because I require this number (+- 300) for other applications and reading it from the plot is downright impractical.
thanks in advance for anyone willing to help!