add_root | R Documentation |
Add a singular root node to an existing nonsingular tree
add_root(tree_old, root_edge_length, root_label, leaf_label)
tree_old |
the original nonsingular "phylo" tree |
root_edge_length |
a number in (0, 1) representing the distance between the new and the original root nodes |
root_label |
a character label of the new root node |
leaf_label |
a character label of the leaf node |
a singular "phylo" tree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.