Learn R Programming

phytools (version 0.6-44)

geo.legend: Adds a geological (or other temporal) legend to a plotted tree

Description

This function adds a geological (or other temporal) legend to a plotted tree.

Usage

geo.legend(leg=NULL, colors=NULL, alpha=0.2, ...)

Arguments

leg

a matrix with the starting & ending point of each plotted era in rows, & names of the time periods as rownames.

colors

a vector of colors for the time periods of the rows in leg.

alpha

transparency level to apply to colors.

...

optional arguments.

Value

Functions adds a visual element to a plotted tree.

References

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