Functions adds a new tip to the tree. If the tree is ultrametric and no branch length is specified, then edge.length
is scaled so that the tree remains ultrametric after the new tip is added.
bind.tip(tree, tip.label, edge.length=NULL, where=NULL, position=0,
interactive=FALSE, ...)
receptor tree.
a string containing the species name for the new tip.
edge length for the new tip (a scalar).
node number to attach new tip. If position>0
then then tip will be attached below the specified node. Node numbers can also be tips, in which case the new tip will be added along the terminal edge. To find out the tip number for given species with name "species" type: which(tree$tip.label=="species"
.
distance below node to add tip.
logical value indicating whether or not the species should be added interactively. (Defaults to FALSE
.)
arguments to be passed to plotTree
(for interactive=TRUE
.)
An object of class "phylo"
.
Wrapper function for 'ape' bind.tree
. Note that interactive=TRUE
works only for right-facing phylograms.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.