untangle {phytools}R Documentation

Attempts to untangle crossing branches for plotting

Description

This function attempts to untangle the branches of a tree that are tangled in plotting with plot.phylo, plotTree, or plotSimmap. Note that method="read.tree" does not presently work for SIMMAP style trees

Usage

untangle(tree, method=c("reorder","read.tree"))

Arguments

tree

tree as an object of class "phylo". Can be a SIMMAP style tree (e.g., read.simmap.

method

method to use to attempt to untangle branches. method="reorder" uses two calls of reorder.phylo or reorderSimmap; method="read.tree" writes the tree to a text string and then reads it back into memory using read.tree.

Value

A tree with branch lengths, or modified "phylo" object with a mapped discrete character.

Author(s)

Liam Revell liam.revell@umb.edu

References

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


[Package phytools version 0.4-60 Index]