View source: R/tree_rearrangement.R
| MakeTreeBinary | R Documentation |
MakeTreeBinary() resolves, at random, all polytomies in a tree or set of
trees, such that all trees compatible with the input topology are drawn
with equal probability.
MakeTreeBinary(tree)
tree |
A tree of class |
MakeTreeBinary() returns a rooted binary tree of class phylo,
corresponding to tree uniformly selected from all those compatible with
the input tree topologies.
Martin R. Smith (martin.smith@durham.ac.uk)
Since ape v5.5, this functionality is available through
ape::multi2di(); previous versions of "ape" did not return topologies
in equal frequencies.
Other tree manipulation:
AddTip(),
CollapseNode(),
ConsensusWithout(),
DropTip(),
EnforceOutgroup(),
ImposeConstraint(),
KeptPaths(),
KeptVerts(),
LeafLabelInterchange(),
Renumber(),
RenumberTips(),
RenumberTree(),
RootTree(),
SortTree(),
Subtree(),
TipTimedTree(),
TrivialTree
MakeTreeBinary(CollapseNode(PectinateTree(7), c(9, 11, 13)))
UnrootTree(MakeTreeBinary(StarTree(5)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.