relabel_tip | R Documentation |
Replaces existing tip labels with new labels.
relabel_tip(phy, label, new_label)
phy |
A phylo object. |
label |
A vector of strings, the tip labels to be replaced. |
new_label |
A vector of strings, the same length as |
library(ape)
tree <- relabel_with_names(get_glottolog_trees("Tangkic"))
plot(tree)
tree2 <- relabel_tip(tree, "Kangkalita", "Gangalidda")
plot(tree2)
tree3 <- clone_tip(tree, "Yangkaal", subgroup = TRUE)
plot(tree3)
tree4 <- apply_duplicate_suffixes(tree3)
plot(tree4)
tree5 <- relabel_tip(tree4, c("Kangkalita", "Yangkaal-1", "Yangkaal-2"),
c("Gangalidda", "Yangkaal", "Yangarella"))
plot(tree5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.