Skip to contents

Direct entry point to root_on_node(); recommended for expert use only. RootTree() checks that input is properly formatted and is recommended for general use.

Usage

root_on_node(phy, outgroup)

Arguments

phy

Minimally, a named list with entries edge and Nnode, in the format of equivalent entries in a tree of class phylo. edge.length will also be considered if supplied.

outgroup

Integer specifying index of leaf or node to set as the outgroup.

Value

root_on_node() returns phy rooted on the specified node.