root_tree.phylo: Root tree given three tips

root_tree.phyloR Documentation

Root tree given three tips

Description

This function roots a phylogenetic tree given three tip labels.

Usage

root_tree.phylo(tree, tips)

Arguments

tree

An object of class phylo

tips

Three tip labels

Details

Tips a, b and c define exactly one internal node in the unrooted tree. The tree will be rooted on the branch leading from this node to tip a.

The branch labels (e.g. support values) are handled correctly, i.e. moved to the correct nodes. When the tree is rooted on a non-tip branch, its branch label will be copied to both child notes of the root node.

Value

An object of class phylo


SWittouck/tidyorthogroups documentation built on Feb. 2, 2023, 12:45 a.m.