when I use default plot()
for hclust
object, it places leaves' labels at different distances, just as I need:
data(mtcars)
plot(hclust(dist(mtcars)))
But when I do the same for dendrogram
object, it aligns all labels to the same level:
plot(as.dendrogram(hclust(dist(mtcars))))
How to disable this alignment and make it behave exactly like for hclust
?
I tried hang=0
but it makes all "leaves" to have zero length: