tmETM: Generation of rooted binary trees under the...

genETMTreeR Documentation

Generation of rooted binary trees under the equiprobable-types-model (ETM)

Description

genETMTree - Generates a rooted binary tree in phylo format with the given number of n leaves under the equiprobable-types-model. Given n, all tree shapes/topologies with n leaves are equiprobable under the ETM.

Usage

genETMTree(n)

Arguments

n

Integer value that specifies the desired number of leaves, i.e., vertices with in-degree 1 and out-degree 0.
Due to the restrictions of the phylo or multiphylo format, the number of leaves must be at least 2 since there must be at least one edge.

Value

genETMTree A single tree of class phylo is returned.

References

  • This function uses the rtree(..., equiprob = T) function of the ape package (E. Paradis, K. Schliep. “ape 5.0: an environment for modern phylogenetics and evolutionary analyses in R.” Bioinformatics, 35, 526-528, 2019).

Examples

genETMTree(n = 5)

poweRbal documentation built on Sept. 11, 2024, 5:30 p.m.

Related to tmETM in poweRbal...