raise.dendrogram | R Documentation |
Raise the height of nodes in a dendrogram tree.
raise.dendrogram(dend, heiget_to_add, ...)
dend |
dendrogram object |
heiget_to_add |
how much height to add to all the branches (not leaves) in the dendrogram |
... |
passed on (not used) |
A raised dendrogram
hc <- hclust(dist(USArrests[2:9, ]), "com")
dend <- as.dendrogram(hc)
par(mfrow = c(1, 2))
plot(dend, main = "original tree")
plot(raise.dendrogram(dend, 100), main = "Raised tree")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.