keep_tip | R Documentation |
Nominate which tips are to be kept. Others are removed.
keep_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 <- keep_tip(tree, c("lard1243", "kang1283", "kaya1319"))
plot_glotto(tree2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.