Learn R Programming

phytools (version 0.3-72.1)

untangle: 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

Value

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