collapse_node | R Documentation |
Collapse one or more nodes rootwards
collapse_node(phy, label)
phy |
A phylo object. The tree to manipulate. |
label |
A character vector containing node labels. |
A phylo object containing the modified tree.
library(ape)
tree <-
rescale_branches_exp(abridge_labels(get_glottolog_trees("Tangkic")))
plot_glotto(tree)
tree2 <- collapse_node(tree, "gang1267")
plot_glotto(tree2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.