Description Usage Arguments Value Author(s) See Also Examples
The function calculates the height of a node. The tree is assumed to be an ultramatric tree.
1 | node.height(inode, nodematrix, nspecies)
|
inode |
the node number |
nodematrix |
the tree node matrix |
nspecies |
the number of species in the tree |
The function returns the height of inode.
Liang Liu lliu@uga.edu
1 2 3 | tree.string<-"(((H:4.2,C:4.2):3.1,G:7.3):6.3,O:13.5);"
nodematrix<-read.tree.nodes(tree.string)$nodes
node.height(6,nodematrix,4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.