Description Usage Arguments Examples
Draw spectra
1 |
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". |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.