add_rootbranch | R Documentation |
This function adds a branch to the root of the tree, adding one extra node in the process.
add_rootbranch(tree, branch_length = 1)
tree |
A phylogeny of class |
branch_length |
The length of the root branch |
An object of class phylo
tree <- ape::read.tree(text = "(a:1, b:1);")
tree <- add_rootbranch(tree)
plot(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.