Description Usage Arguments Details References Examples
A new tip is added to an existing phylogenetic tree by specifying an edge/branch in the tree, name of the new tip and ages of the new tip and node.
1 | addTip(tree, edge, tip.name, node.age, tip.age = 0, node.label)
|
tree |
phylogenetic tree (ape class) |
edge |
tree branch where tip will be added |
tip.name |
name for the new tip to be added |
node.age |
age of the new node to be created |
tip.age |
age of the new tip to be added (default 0) |
node.label |
label for the new |
Return a tree with an extra tip. The new tip is created by
finding the edge in the tree, adding a new node at node.age
and then by adding a new branch to tip.age.
The function is modified code from multi2di from ape.
N.B. ape uses node.label to label all internal nodes, MoreTreeTools
uses it to labels all nodes including tip nodes.
No references yet! https://github.com/DomBennett/MoreTreeTools.
1 | # example.var <- exampleFun (test.data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.