Add an arrow pointing to a tip or node on the tree


This function adds an arrow to a plotted tree.


add.arrow(tree=NULL, tip, ...)



an object of class "phylo", "contMap", or "densityMap". If not supplied, the function will obtain the last plotted phylogeny from the environmental variable last_plot.phylo.


label of tip or tip or node number. If tree=NULL then the tip or node number must be supplied.


optional arguments to control the shape and size of the arrow including: its length (arrl) in the units of the plot; the length of the arrowhead (hedl); the total angle between the wings in the arrowhead (angle); the line width for the plotted lines (lwd); the offset from the tip or end of tip label, in character widths (offset); and the color (col).


This function presently works for radial (type="fan") and right facing square phylograms (type="phylogram"). Trees can be plotted using phytools function plotTree, plotSimmap, contMap, densityMap, and ape method plot.phylo.


Liam Revell


Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.

See Also


Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus