ggeem: EEM spectra plotted with ggplot2

Description Usage Arguments Details Value Examples

Description

Plots from EEM spectra of class ggplot. In case you work with a larger number of EEMs and want to show then in several plots, you can use eem_overview_plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
ggeem(data, fill_max = FALSE, ...)

## Default S3 method:
ggeem(data, fill_max = FALSE, ...)

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

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

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

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

Arguments

data

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

fill_max

sets the maximum fluorescence value for the colour scale. This is mainly used by other functions, and makes different plots visually comparable.

...

parameters passed on to ggplot.

redneg

logical, whether negative values should be coloured discreet.

Details

The data can be of different sources: eem: a single EEM spectrum is plotted eemlist: all spectra of the samples are plotted, arranged in a grid data.frame: a data.frame containing EEM data. Can be created by e.g. as.data.frame.eem parafac: a PARAFAC model, the components are plotted then.

Using redneg you can give negative values a reddish colour. This can help identifying these parts in samples or components. Negative values are physically not possible and can only be the result of measuring errors, model deviations and problems with interpolated values.

A colour palette can be specified using the argument colpal.

Plotting distinct samples can be done using eem_extract. Please see example.

Value

a ggplot object

Examples

1
2
3
4
5
## plotting two distinct samples
data(eem_list)
eem_names(eem_list)
eem <- eem_extract(eem_list,c("^dreem_667sf$", "^dreem_661sf$"),keep=TRUE)
ggeem(eem)

jakehosen/stardom_aqualog documentation built on May 14, 2019, 3:06 a.m.