di2multi.simmap: Collapse branches of zero length to polytomy in stochastic...

Description Usage Arguments Details Value Author(s) References See Also

View source: R/utilities.R

Description

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.

Usage

1
2
## S3 method for class 'simmap'
di2multi(phy, ...)

Arguments

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.

Details

This function should theoretically perform similarly to di2multi in ape.

Value

A tree with a stochastically mapped discrete character

Author(s)

Liam Revell [email protected]

References

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also

di2multi, make.simmap, read.simmap


liamrevell/phytools documentation built on Oct. 26, 2018, 12:37 a.m.