genTrees | R Documentation |
genTrees
- Is a wrapper function that generates
Ntrees
-many rooted binary trees with the given number of n
leaves under any tree model tm
contained in this package (more
details on the available models are given in the parameter information
for tm
).
genTrees(n, Ntrees = 1L, tm)
n |
Integer value that specifies the desired number of leaves, i.e.,
vertices with in-degree 1 and out-degree 0. |
Ntrees |
Integer value (default = 1) that specifies the desired number of generated trees. |
tm |
Character or list specifying the tree model under which the trees
should be generated as well as their parameters. Available are:
|
genTrees
If Ntrees
is 1, then a single tree of
class phylo
is returned.
If Ntrees
is larger than 1, a list of class
multiPhylo
containing the trees of class phylo
is returned.
S. J. Kersting, K. Wicke, and M. Fischer. Tree balance in phylogenetic models. arXiv:2406.05185, 2024.
S. J. Kersting, K. Wicke, and M. Fischer. Tree balance in phylogenetic models: Supplementary material. https://tinyurl.com/278cwdh8, 2024.
genTrees(n = 5, Ntrees = 2, tm = list("aldous", 1))
genTrees(n = 5, tm = "pda")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.