This function collapses branches of zero length (or, more specifically, branches with length shorter than tol
) to create a polytomy in a stochastic-map style tree.
# S3 method for simmap
di2multi(phy, ...)
object of class "simmap"
containing a stochastically mapped discrete character.
optional argument tol
, length below which edges should be treated as having zero length.
A tree with a stochastically mapped discrete character
This function should theoretically perform similarly to di2multi
in ape.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.