Description Usage Arguments Details Value See Also
Add a subnode to phylo4d_ext object.
1 | addSubNode(x, anc, dec, position, dataf, pos.is.fraction = FALSE)
|
x |
a phylo4d_ext object |
anc |
Node id of the ancestor on the branch on which the subnode is to be added |
dec |
Node id of the descendant on the branch on which the subnode is to be added |
position |
The position on the branch where the subnode is to be placed. It is stored as a faction of the branches' total length and is in relation to the ancestral node. In other words, a smaller value will be closer to the ancestral node. |
dataf |
a data.frame object which should be structurally similar to the data frame of the phylo4d object (data slot). It should contain data entries for the subnode. |
pos.is.fraction |
Specify whether |
This is the main function in RBrownie for adding subnodes manually. It is used internally when reading in SIMMAP-formatted newick trees and can also be used to edit phylo4d_ext trees.
Returns x
with a new subnode added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.