rename_taxa | R Documentation |
rename tip label of phylogenetic tree
rename_taxa(tree, data, key = 1, value = 2)
tree |
tree object, either treedata or phylo |
data |
data frame |
key |
column in data that match tip label (use 1st column by default) |
value |
column in data for rename tip label (use 2nd column by default) |
tree object
Guangchuang Yu
tree <- rtree(3)
d <- data.frame(old = paste0('t', 1:3), new = LETTERS[1:3])
rename_taxa(tree, d)
rename_taxa(tree, d, old, new)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.