plotEEMs: plotEEMs

View source: R/PlotEEMsFxn.R

plotEEMsR Documentation

plotEEMs

Description

Plot contour graph of excitation emmission spectra with defined peaks indicated on the graph

Usage

plotEEMs(mat, Ex, Em, nlevels, Peaks, peakCol, peakEx, peakEm, mainTitle,
  titleSize = 0.9, ...)

Arguments

mat

2-D matrix of excitation-emmission spectra

Ex

numeric excitation wavelengths

Em

numeric emmission wavelengths

nlevels

numeric color levels for contour graph. 50 is commonly used for a value here.

Peaks

dataframe with peaks to be indicated on the graph

peakCol

character column name in Peaks which contains the abbreviation for that peak

peakEx

character column name in Peaks to use for excitation wavelengths

peakEm

character column name in Peaks to use for emmission wavelengths

mainTitle

Plot title

titleSize

font size for plot title

...

additional plotting parameters as needed. xlim and ylim are commonly used here.

Value

Excitation-Emission (EEMs) Plot with the important peaks identified

Examples

GRnum <- "gr13307"
mat <- a[,,GRnum]
Ex <- as.numeric(names(a[,1,1]))
Em <- as.numeric(names(a[1,,1]))
nlevels <- 50
Peaks <- ex_ems
peakCol <- "Peak"
peakEx <- "ExCA"
peakEm <- "EmCA"
titleSize <- 1.1
mainTitle <- "Example EEMs Plot"
exampleEEMs <- plotEEMs(mat=mat,Ex=Ex,Em=Em,nlevels=nlevels,Peaks=Peaks,peakCol=peakCol,
peakEx=peakEx,peakEm=peakEm,mainTitle=mainTitle,titleSize=titleSize)

USGS-R/USGSHydroOpt documentation built on Oct. 18, 2022, 9:50 a.m.