allTrees {phangorn} | R Documentation |
allTrees
computes all tree topologies for rooted or unrooted trees with up to 10 tips.
nni
returns a list of all trees which are one nearest neighbor interchange away.
Both methods assume bifurcating trees.
allTrees(n, rooted = FALSE, tip.label = NULL) nni(tree, edge.length = FALSE)
n |
Number of tips (<=10). |
rooted |
Rooted or unrooted trees (default: rooted). |
tip.label |
Tip labels. |
tree |
A phylogenetic tree , object of class phylo . |
edge.length |
Keep edge lengths? |
an object of class phylo.
Klaus Schliep K.P.Schliep@massey.ac.nz
trees <- allTrees(5) par(mfrow = c(3,5)) for(i in 1:15)plot(trees[[i]]) neighborhood <- nni(trees[[1]])