plotEEMs | R Documentation |
Plot contour graph of excitation emmission spectra with defined peaks indicated on the graph
plotEEMs(mat, Ex, Em, nlevels, Peaks, peakCol, peakEx, peakEm, mainTitle, titleSize = 0.9, ...)
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. |
Excitation-Emission (EEMs) Plot with the important peaks identified
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.