colless.phylo | R Documentation |
Finds the Colless number for a tree.
Note that the package apTreeshape
has a function colless
to compute the Colless imbalance with additional options to normalise it based on the model;
we include this simple function here for convenience within this package, and for use on objects of class phylo
and phylo4
.
colless.phylo(tree, normalise = TRUE)
tree |
a tree of class |
normalise |
option to normalise the result by dividing by the number of tip pairs. Defaults to |
The Colless imbalance number of the tree.
Michael Boyd mboyd855@gmail.com
Michelle Kendall michelle.louise.kendall@gmail.com
## Find the Colless imbalance of a random tree with 10 tips: tree <- rtree(10) plot(tree) colless.phylo(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.