Learn R Programming

phytools (version 1.5-1)

collapseTree: Interactive tree visualizer

Description

Function creates an interactive visualization of collapsing & expanding clades on the tree.

Usage

collapseTree(tree, ...)

Value

Returns the final plotted tree.

Arguments

tree

an object of class "phylo".

...

optional arguments. These mostly match the arguments of plotSimmap, but also include the argument drop.extinct=TRUE which will (if the input tree is ultrametric) drop any 'extinct' lineages from the tree that is returned by the function.

Author

Liam Revell liam.revell@umb.edu

Details

Function first plots a fan style tree, and then the user collapses node on the tree by clicking on them. Collapsed nodes are collapsed to the common ancestor of the clade. Nodes that have been collapsed can also be expanded by clicking. Right-click to end.

References

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

See Also

plotTree, plotSimmap

Examples

Run this code
if (FALSE) {
data(anoletree)
pruned<-collapseTree(anoletree)}

Run the code above in your browser using DataLab