Description Usage Arguments Value Author(s) Examples
This function binds a tip to a node and creates a polytomy
1 | at.node(phylogeny, location.node, tip.label)
|
phylogeny |
The phylogeny. |
location.node |
The number or label of the node to bind. |
tip.label |
The label of the tip. |
Returns the phylogeny with the tip binded to the node.
Yi Jin
1 2 3 4 5 6 | library(ape)
phylo0 <- rcoal(10) # generate a phylogeny with 10 tips
phylo <- at.node(phylogeny = phylo0, location.node = sample(phylo0$edge[, 1], 1), tip.label = "New Tip") # bind a "New Tip" to the phylogeny at a random node.
par(mfrow = c(1, 2))
plot(phylo0) # plot the phylogeny.
plot(phylo) # plot the phylogeny with the "New Tip" binded.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.