nodeImb | R Documentation |
For a given node, this function gives the number of tips descending from each of its two children, as a measure of imbalance.
nodeImb(tree, node)
tree |
a tree of class |
node |
a node index between 1 and 2n-1, where n is the number of tips in the tree. |
Two integers corresponding to the number of tip descendants of each of the node's two children. If the node is itself a tip, then the vector (0,0) will be returned.
Michelle Kendall michelle.louise.kendall@gmail.com
treeImb
## Find the imbalance of node 16 in a random tree with 10 tips: tree <- rtree(10) plot(tree) nodelabels() nodeImb(tree,16)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.