Learn R Programming

phytools (version 0.7-70)

splitTree: Split tree at a point

Description

Primarily an internal function for posterior.evolrate, this function splits the tree at a given point, and returns the two subtrees as an object of class "multiPhylo".

Usage

splitTree(tree, split)

Arguments

tree

phylogenetic tree.

split

split encoded as a list with two elements: node: the node number tipward of the split; and bp: the position along the branch to break the tree, measured from the rootward end of the edge.

Value

Two trees in a list.

Details

Probably do not use this unless you can figure out what you are doing.

References

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