add.random | R Documentation |
This function adds new tips at random to a tree with branch lengths.
add.random(tree, n=NULL, tips=NULL, edge.length=NULL, order=c("random","input"))
tree |
an object of class |
n |
a number of tips to add to the tree. If |
tips |
a set of tip names for the added tips. If |
edge.length |
terminal edge length for the added tips. If |
order |
addition order for the new tips. |
If no edge lengths are provided, and the tree is ultrametric, then edge lengths are assigned to keep the tree ultrametric.
The probability that at new tip is added along any branch is directly proportional to the length of the branch.
Note that sometimes the resultant tree plotted with plot.phylo
or plotSimmap
may display with branches crossing. If so, the tree can be 'untangled' using untangle
.
An object of class "phylo"
.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
allFurcTrees
, add.everywhere
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.