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)
A tree of class phylo
.
MakeTreeBinary()
returns a rooted binary tree of class phylo
,
corresponding to tree uniformly selected from all those compatible with
the input tree topologies.
Resolve polytomies such that some resolutions are more probable
than others using ape::multi2di()
.
Other tree manipulation:
AddTip()
,
CollapseNode()
,
ConsensusWithout()
,
DropTip()
,
EnforceOutgroup()
,
LeafLabelInterchange()
,
RenumberTips()
,
RenumberTree()
,
Renumber()
,
RootTree()
,
SingleTaxonTree()
,
SortTree()
,
Subtree()
# NOT RUN {
MakeTreeBinary(CollapseNode(PectinateTree(7), c(9, 11, 13)))
UnrootTree(MakeTreeBinary(StarTree(5)))
# }
Run the code above in your browser using DataLab