smaller.clade.spectrum {apTreeshape}R Documentation

Compute the smaller clade spectrum of a tree.

Description

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.

Usage

smaller.clade.spectrum(tree)

Arguments

tree An object of class "treeshape".

Value

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.

Author(s)

Michael Blum <michael.blum@imag.fr>
Nicolas Bortolussi <nicolas.bortolussi@imag.fr>
Eric Durand <eric.durand@imag.fr>
Olivier Francois <olivier.franois@imag.fr>

See Also

spectrum.treeshape

Examples


## A random biased tree with 50 tips
tr<-rtreeshape(n=1,tip.number=50,model="biased")
clades=spectrum.treeshape(tr)
clades
plot(clades)

[Package apTreeshape version 1.0.0 Index]