root_tree.phylo | R Documentation |
This function roots a phylogenetic tree given three tip labels.
root_tree.phylo(tree, tips, edge_label = F)
tree |
An object of class phylo |
tips |
Three tip labels |
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.
By default, node/tip labels are interpreted as vertex labels, not edge labels. When the labels actually represent edge labels (e.g., branch support values), set edge_label to TRUE. This will make sure that the edge labels are handled correctly, i.e. moved to the correct nodes. In that case, when the tree is rooted on a non-tip branch, its edge label will be copied to both child nodes of the new root node.
An object of class phylo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.