.addLegend {ChemoSpecUtils} | R Documentation |
Add a Legend to a Plot
Description
Internal function. Add a legend to a plot created by either ChemoSpec
or ChemoSpec2D
.
ChemoSpec2D
does not use symbols.
Usage
.addLegend(spectra, leg.loc, use.sym, ...)
Arguments
spectra |
An object of S3 class |
leg.loc |
Either a list with elements |
use.sym |
Logical; if true, the color scheme is set to black and the
points plotted with symbols. Applies only to |
... |
Parameters to be passed to the plotting routines. Applies to base graphics only. |
Value
None. Side effect is to modify an existing plot.
Author(s)
Bryan A. Hanson (DePauw University).