Learn R Programming

phangorn (version 1.5-0)

allTrees: Compute all trees topologies.

Description

allTrees computes all tree topologies for rooted or unrooted trees with up to 10 tips. allTrees returns bifurcating trees.

Usage

allTrees(n, rooted = FALSE, tip.label = NULL)

Arguments

n
Number of tips (
rooted
Rooted or unrooted trees (default: rooted).
tip.label
Tip labels.

Value

  • an object of class multiPhylo.

Examples

Run this code
trees <- allTrees(5)
par(mfrow = c(3,5))
for(i in 1:15)plot(trees[[i]])

Run the code above in your browser using DataLab