powered by
AddTip adds a tip to a phylogenetic tree at a specified location.
AddTip
AddTip(tree, where, label)
A tree of class phylo.
phylo
The node or tip that should form the sister taxon to the new node. To add a new tip at the root, use "where = 0";
A character string providing the label the new tip.
This function returns a tree of class phylo with an additional tip at the desired location.
AddTip extends bind.tree, which cannot handle single-taxon trees.
bind.tree
nodelabels
# NOT RUN { { library('ape') plot(tree <- rtree(10, br=NULL)); nodelabels(); nodelabels(15, 15, bg='green'); dev.new() plot(AddTip(tree, 15, 'NEW_TIP')) } # }
Run the code above in your browser using DataLab