Learn R Programming

TreeTools (version 0.1.2)

RootTree: Root a phylogenetic tree

Description

Roots a tree on the smallest clade containing the specified tips.

Usage

RootTree(tree, outgroupTips)

Arguments

tree

A tree of class phylo.

outgroupTips

Character vector specifying the names of the tips to include in the outgroup.

Value

RootTree returns a tree of class phylo, rooted on the smallest clade that contains the specified tips.

See Also