smaller.clade.spectrum {apTreeshape} | R Documentation |
smaller.clade.spectrum
returns a n*2 matrix where n is the number of internal nodes of the tree. For each i in 1:n, the [i,1] element of the matrix is the size of the clade rooted at the 'i'th node of the tree. [i,2] is the size of the smaller daughter clade of the 'i'th node of the tree.
smaller.clade.spectrum(tree)
tree |
An object of class "treeshape" . |
A n*2 matrix (where n is the number of internal node of the tree) containing the size of the clades and the smaller clades.
smaller.clade.spectrum(tree)[1,1]
contains the number of tips of the tree.
smaller.clade.spectrum(tree)[i,1]
contains the number of tips of the subtree whose root is the node number n-i+1
.
smaller.clade.spectrum(tree)[1,2]
contains the number of tips of the smaller clade of the root.
Michael Blum <michael.blum@imag.fr>
Nicolas Bortolussi <nicolas.bortolussi@imag.fr>
Eric Durand <eric.durand@imag.fr>
Olivier Francois <olivier.franois@imag.fr>
## A random biased tree with 50 tips tr<-rtreeshape(n=1,tip.number=50,model="biased") clades=spectrum.treeshape(tr) clades plot(clades)