Learn R Programming

staRdom (version 1.1.30)

geom_eemregions: 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,
  ...
)

Value

a layer to a ggplot2

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.

Examples

Run this code
require(tidyr)

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

Run the code above in your browser using DataLab