.ggAddLegend {ChemoSpecUtils} | R Documentation |
Add Legend to a ggplot2 Plot
Description
Internal function. This function creates a suitable legend and returns it as a set of grobs, ready to be added to an existing plot.
Usage
.ggAddLegend(spectra, use.sym, leg.loc)
Arguments
spectra |
An object of S3 class |
use.sym |
Logical specifying if symbols will be used or not. |
leg.loc |
A list giving x, y coordinates, and a reference point. |
Value
A grob containing the legend.
Author(s)
Bryan A. Hanson (DePauw University), Tejasvi Gupta.
[Package ChemoSpecUtils version 1.0.5 Index]