staRdom (version 1.0.3)

ggeem: EEM spectra plotted with ggplot2

Description

ggeem creates nice plots from EEM spectra of class ggplot. Plots can be modified as any ggplot by adding layers and/or elements with "+".

Usage

ggeem(data, fill_max = FALSE, ...)

# S3 method for default ggeem(data, fill_max = FALSE, ...)

# S3 method for eemlist ggeem(data, fill_max = FALSE, ...)

# S3 method for eem ggeem(data, fill_max = FALSE, ...)

# S3 method for parafac ggeem(data, fill_max = FALSE, ...)

# S3 method for data.frame ggeem(data, fill_max = FALSE, ...)

Arguments

data

eem, eemlist, parafac or data.frame. The details are given under 'Details'

fill_max

FALSE

...

parameters passed on to ggplot

Value

a ggplot object

Details

The data can be of different sources: eem: a single EEM pectrum is plotted eemlist: all spectra of the samples are plotted in one facet plot data.frame: a data.frame containing EEM data. Can be created by e.g. as.data.frame.eem

Examples

Run this code
# NOT RUN {
## plotting one distinct sample
data(eem_list)
eem <- eem_extract(eem_list,c("sample6","sample7"),keep=TRUE)
ggeem(eem)
# }

Run the code above in your browser using DataCamp Workspace