remove_tip | R Documentation |
From a tree, remove tips identified by their node labels.
remove_tip(phy, label)
phy |
A phylo object. The tree to manipulate. |
label |
A character vector containing tip labels. |
A phylo object containing the modified tree.
library(ape)
tree <- abridge_labels(get_glottolog_trees("Tangkic"))
plot_glotto(tree)
tree2 <- remove_tip(tree, c("kang1283", "kaya1319"))
plot_glotto(tree2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.