Last chance! 50% off unlimited learning
Sale ends in
duplicate_leaf(dend, leaf_label, times, fix_members = TRUE, fix_order = TRUE, fix_midpoint = TRUE, ...)
## Not run:
# # define dendrogram object to play with:
# dend <- USArrests[1:3,] %>% dist %>% hclust(method = "ave") %>% as.dendrogram
# plot(dend)
# duplicate_leaf(dend, "Alaska", 3)
# duplicate_leaf(dend, "Arizona", 2, fix_members =FALSE, fix_order = FALSE)
# plot(duplicate_leaf(dend, "Alaska", 2))
# plot(duplicate_leaf(dend, "Alaska", 4))
# plot(duplicate_leaf(dend, "Arizona", 2))
# plot(duplicate_leaf(dend, "Arizona", 4))
# ## End(Not run)
Run the code above in your browser using DataLab