treeSlice {phytools}R Documentation

Slices the tree at a particular point and returns all subtrees

Description

This function slices a tree at a particular height above the root and returns all subtrees or all non-trivial subtrees (i.e., subtrees with more than 1 taxon). Uses extract.clade in the "ape" package.

Usage

treeSlice(tree, slice, trivial=FALSE)

Arguments

tree

is a phylogenetic tree in "phylo" format.

slice

a real number indicating the height above the root at which to slice the tree.

trivial

a logical value indicating whether or not to return subtrees with a number of tips less than two (default is FALSE).

Value

An object of class "phylo" or "multiPhylo".

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.

See Also

extract.clade


[Package phytools version 0.4-60 Index]