drawSpec: Draw spectra

Description Usage Arguments Examples

Description

Draw spectra

Usage

1

Arguments

x

unfolded EEM or EEM

...

pass to geom_line

EX

excitation wavelength

EM

emission wavelength

group

a vector of characters or factors

ggplot

logical value whether to use ggplot or not

legendlocation

legend location. can be anything from "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" or "center".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
require(EEM)
data(applejuice)
country <- sapply(strsplit(names(applejuice), split = "-"), "[", 1)

# ggplot
drawSpec(unfold(applejuice), EX = 340)
drawSpec(unfold(applejuice), EX = 340, group = country)
drawSpec(unfold(applejuice), EM = 400, group = country)

# base plot
drawSpec(unfold(applejuice), EX = 340, group = country, ggplot = FALSE)
drawSpec(unfold(applejuice), EM = 400, group = country, ggplot = FALSE)

chengvt/cheng documentation built on May 13, 2019, 3:52 p.m.