Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bethe.tree

Bethe Tree


Description

Generates a Bethe tree with given tips, inner edge lengths, and outgroup.

Usage

bethe.tree(tips, level.lengths = NULL, outgroup="O", outgroup.dist=1)

Arguments

tips

A list of tip names as a character vector. Should be a power of 2. All tip names must be distinct.

level.lengths

Edge lengths for each level, counted from the bottom up. NULL means a default of 1. If the vector isn't long enough, the last value will be repeated as necessary.

outgroup

The tip label for the outgroup.

outgroup.dist

The distance of the outgroup from the root.

Details

Generates a Bethe tree with specified internal edge lengths.

Value

A class of type phylo representing the tree.

Author(s)

John Chakerian

References

Chakerian, J. and Holmes, S. P. Computational Tools for Evaluating Phylogenetic and Heirarchical Clustering Trees. arXiv:1006.1015v1.

See Also

Examples

plot(bethe.tree(as.character(1:16), 1:4, "17", 14))

distory

Distance Between Phylogenetic Histories

v1.4.4
BSD_3_clause + file LICENSE
Authors
John Chakerian [aut, cre], Susan Holmes [aut, cre]
Initial release
2020-04-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.