View source: R/plot_functions.R
ggeem_overlay | R Documentation |
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.
ggeem_overlay(
plot,
scatter = rep(TRUE, 4),
regions = TRUE,
peakloc = TRUE,
limit = TRUE,
...
)
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(). |
an altered ggplot2
require(tidyr)
eem_list %>%
eem_extract(eem_names((eem_list))[1], keep = TRUE) %>%
ggeem() %>%
ggeem_overlay()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.