ggeem_overlay: Add layers of scatter bands, molecular regions and common peaks to EEM plots
Description
This function is a wrapper for geom_eemregions
, geom_eempeakloc
, geom_eemscatter
and can limit the plot extend to the area of the original EEM.
Therefore, it is not added using '+' but the plot has to be supplied as an argument.
Usage
ggeem_overlay(
plot,
scatter = rep(TRUE, 4),
regions = TRUE,
peakloc = TRUE,
limit = TRUE,
...
)
Arguments
- plot
the ggplot where the layers are added
- scatter
logical vector of size 4 stating the scatter bands to be marked. The order is Raman 1, Raman 2, Rayleigh 1, Rayleigh 2.
- regions
logical, whether molecular regions are marked
- peakloc
logical, whether common EEM peaks are marked
- limit
logical, whether the plot is limited to the original EEM
- ...
additional arguments passed to geom_eemregions(), geom_eemscatter() and geom_eempeakloc().
Examples
Run this coderequire(tidyr)
eem_list %>%
eem_extract(eem_names((eem_list))[1], keep = TRUE) %>%
ggeem() %>%
ggeem_overlay()
Run the code above in your browser using DataLab