Learn R Programming

TreeSearch (version 0.3.2)

RootTree: Root Tree on specified tips

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

A tree of class phylo, rooted on the smallest clade that contains the specified tips