Description Usage Arguments Value Author(s) See Also Examples
Substitute the tip labels of a phylogenetic tree according to a reference data table.
1 | sub.taxa.label(tree, dat)
|
tree |
Phylogenetic tree |
dat |
A dataframe with the first column the tip labels and the second column the new names. |
A Phylogenetic tree with the tip labels substituted
Jinlong Zhang jinlongzhang01@gmail.com
1 2 3 4 5 6 | library(ape)
data(bird.families)
tips <- bird.families$tip.label
abr <- paste("fam",1:length(tips), sep = "")
dat <- data.frame(tips, abr)
ntree <- sub.taxa.label(bird.families, dat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.