add.simmap.legend | R Documentation |
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 indicating whether to plot the legend vertically (if |
... |
optional arguments including: |
Redundant with legend
, which is much more powerful but somewhat more complicated to use.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
plotSimmap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.