convert_to_tip | R Documentation |
For nodes identified by their label, remove the clade that they dominate and replace it with a tip of the same name.
convert_to_tip(phy, label, warn = TRUE)
phy |
A phylo object. The tree to manipulate. |
label |
A character vector containing node or tip labels. |
warn |
A logical, whether to issue warning when |
Any labels included in label
which are both node labels and tip labels
are regarded as node label, and that node will be removed and replaced by a
tip.
Any labels included in label
which are tip labels only are ignored.
A phylo object containing the modified tree.
tree1 <- abridge_labels(get_glottolog_trees("GreatAndamanese"))
plot_glotto(tree1)
tree2 <- convert_to_tip(tree1, label = c("okol1242", "sout2683"))
plot_glotto(tree2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.