tree.name2node | R Documentation |
This function replaces the species names in the tree string with their node numbers.
tree.name2node(treestr,name="")
treestr |
the tree string |
name |
the species names |
If species names are not given, the function will use the sorted species names in the tree string.
The function returns the tree string with the species names replaced by the node numbers.
Liang Liu lliu@uga.edu
tree.node2name
treestr<-"(((H:4.2,C:4.2):3.1,G:7.3):6.3,O:13.5);"
name<-c("H","G", "C", "O")
tree.name2node(treestr,name)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.