Learn R Programming

phytools (version 0.4-45)

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

Description

This function adds an arrow to a plotted tree.

Usage

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

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.

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