Description Usage Arguments Details Value Author(s) See Also Examples
Function to add new tip at random to a tree with branch length. This function is a small change in the function add.random
, see details.
1 | add.tip.random(tree, tip, method = "length")
|
tree |
phylogeny as an object of class "phylo". |
tip |
tip name for the added. |
method |
The method to add the new tip, partial match to "equal" or "length". See details (Default method = "length"). |
This function is a small change in the function add.random
allowing add only one tip at random only in ultrametric phylogenetic tree.
Two methods are available. The method "length" add the tip with probability equivalent to edge length, long edge have more probability than short edge.
The method "equal" each edge has equal probability to receive the new tip.
The phylogeny as an object of class "phylo" with new tip.
Vanderlei Julio Debastiani <vanderleidebastiani@yahoo.com.br>
1 2 3 4 5 6 7 8 | set.seed(10)
tree <- rtree(5)
tree <- compute.brlen(tree)
tree <- makeNodeLabel(tree)
plot.phylo(tree, show.node.label = TRUE)
res <- add.tip.random(tree, "NEW", method = "length")
res
plot.phylo(res, show.node.label = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.