remove_leaves_nodePar | R Documentation |
Go through the dendrogram leaves and remove its nodePar.
remove_leaves_nodePar(dend, ...)
dend |
a dendrogram object |
... |
not used |
A dendrogram, after removing the nodePar attribute in all of its leaves,
get_leaves_attr, assign_values_to_leaves_nodePar
## Not run:
dend <- USArrests[1:5, ] %>%
dist() %>%
hclust() %>%
as.dendrogram()
dend <- color_labels(dend, 3)
par(mfrow = c(1, 2))
plot(dend)
plot(remove_leaves_nodePar(dend))
get_leaves_attr(dend, "nodePar")
get_leaves_attr(remove_leaves_nodePar(dend), "nodePar")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.