geom_eemregions: Mark common reagions to EEMs to show molecular groups

View source: R/plot_functions.R

geom_eemregionsR Documentation

Mark common reagions to EEMs to show molecular groups

Description

geom_eemregions marks the locations of commonly destinguished molecular groups in EEMs

Usage

geom_eemregions(
  lim = c(ex_min = 200, ex_max = 500, em_min = 250, em_max = 700),
  detail = TRUE,
  ...
)

Arguments

lim

limit the extend of the lines separating the groups

detail

logical, whether the reagions are given with numbers only or with more detailed information

...

additional arguments to be passed on to geom_function, geom_segment and geom_text

Details

data, the data.frame with the peaks, is included in the package and accessible using data(peaks). It is possible to alter that data.frame and e.g. provide altered peaks or a selection of peaks using common functions on data.frames.

Value

a layer to a ggplot2

Examples

require(tidyr)

eem_list %>%
  eem_extract(eem_names((eem_list))[1], keep = TRUE) %>%
  ggeem() +
  geom_eemregions()

staRdom documentation built on Sept. 9, 2025, 5:53 p.m.