Collapse or resolve polytomies in a tree with a character painted on the edges
The method di2multi collapses branches of zero length (or, more specifically, branches with length shorter than tol) to create a polytomy in a tree or set of trees.
The method multi2di resolves polytomies by adding branches of zero length (while preserving the mappings) in a tree or set of trees.
## S3 method for class 'simmap' di2multi(phy, ...) ## S3 method for class 'simmap' multi2di(phy, ...) ## S3 method for class 'multiSimmap' di2multi(phy, ...) ## S3 method for class 'multiSimmap' multi2di(phy, ...) ## S3 method for class 'contMap' di2multi(phy, ...) ## S3 method for class 'contMap' multi2di(phy, ...) ## S3 method for class 'densityMap' di2multi(phy, ...) ## S3 method for class 'densityMap' multi2di(phy, ...)
phy |
object of class |
... |
optional arguments: |
An object of class "simmap", "multiSimmap", "contMap", or "densityMap", depending on the class of phy.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.