nodeImbFrac | R Documentation |
Calculate the fraction of internal nodes with an imbalance greater than or equal to a given threshold.
nodeImbFrac(tree, threshold)
tree |
a tree of class |
threshold |
a threshold value for node imbalance. |
For any internal node, the function nodeImb
gives the number of tip descendants of each of the node's descending branches. The function nodeImbFrac
returns the fraction of internal nodes where the difference between these numbers is greater than or equal to the threshold.
Michelle Kendall michelle.louise.kendall@gmail.com
nodeImb
## Find the fraction of internal nodes with an imbalance of 5 or more, ## in a random tree with 20 tips: tree <- rtree(20) plot(tree) nodeImbFrac(tree,threshold=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.