Add legend to stochastically mapped tree
This function adds a legend (by default, interactively) to a plotted stochastic character mapped tree.
add.simmap.legend(leg=NULL, colors, prompt=TRUE, vertical=TRUE, ...)
leg |
states for the discrete character in the order of |
colors |
colors for the legend in the order of |
prompt |
logical value indicating whether the location of the legend should be obtained interactively (i.e., by clicking in the plotting area). |
vertical |
logical value indiciating whether to plot the legend vertically (if |
... |
optional arguments including: |
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.