Learn R Programming

phytools (version 0.0-8)

treeSlice: 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 non-trivial subtrees (i.e., subtrees with more than 1 taxon). Uses extract.clade in the "ape" package.

Usage

treeSlice(tree,slice)

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.

Value

  • a "phylo" or "multiPhylo" object.

See Also

extract.clade