keep_as_tip | R Documentation |
Nominate which tips and nodes are to be kept as tips. Others tips are
removed. If any element of label
is both a node label and tip label,
it will be treated as referring to the tip, not the node.
keep_as_tip(phy, label)
phy |
A phylo object. The tree to manipulate. |
label |
A character vector containing tip and node labels. |
A phylo object containing the modified tree.
library(ape)
tree <- abridge_labels(get_glottolog_trees("Tangkic"))
plot_glotto(tree)
tree2 <- keep_as_tip(tree, c("lard1243", "kaya1319", "nyan1300", "gang1267"))
plot_glotto(tree2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.