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

Description

This function adds an arrow to a plotted tree.

Usage

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

Arguments

tree

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.

tip

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).

Details

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.

Author(s)

Liam Revell liam.revell@umb.edu

References

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

See Also

nodelabels

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.