Learn R Programming

phytools (version 0.2-40)

allFurcTrees: Generate all bi- and multifurcating unrooted trees

Description

This function creates all possible unrooted bi- and multifurcating trees and returns a a list of trees as an object of class "multiPhylo".

Usage

allFurcTrees(n, tip.label=NULL, to.plot=TRUE)

Arguments

n
an integer giving the desired number of species.
tip.label
an optional vector of length n containing the tip names.
to.plot
an optional logical value indicating whether or not to plot the trees.

Value

  • a list of trees as an object of class "multiPhylo".

Details

This function should be used with caution for n greater than about 8, as in this case the number of possible trees is extremely large.

References

Felsenstein, J. 2004. Inferring Phylogenies. Sinauer.

See Also

add.everywhere, exhaustiveMP