TreeTools (version 0.1.3)

BalancedTree: Generate a Balanced Tree

Description

Generates a balanced (symmetrical) binary tree with the specified tip labels.

Usage

BalancedTree(tips)

Arguments

tips

An integer specifying the number of tips, or a character vector naming the tips, or any other object from which tip labels can be extracted with function TipLabels.

Value

A tree of class phylo.

See Also

Other tree generation functions: NJTree, PectinateTree, RandomTree, SingleTaxonTree, TreeNumber

Examples

Run this code
# NOT RUN {
plot(BalancedTree(LETTERS[1:10]))
# }

Run the code above in your browser using DataLab