Allows visualization of the characterization results. Plots the chromatogram and the second derivative with peak boundaries illustrated.

plotPeaks(
  cpc,
  peakIdx,
  outPath = NULL,
  prefix = NULL,
  device = "png",
  plotEMG = FALSE,
  plotXCMS = TRUE,
  noPrompt = FALSE,
  annotation = character(1),
  ...
)

Arguments

cpc

A cpc object

peakIdx

numeric vector of peak indices to be plotted

outPath

(optional) Path to save plots to

prefix

(optional) Filename prefix, if NULL the filename of the raw data is used

device

Graphics device to be used for saving plots (default: "png")

plotEMG

logical indicating if the EMG fitting results should be plotted (default: FALSE)

plotXCMS

logical indicating if the XCMS data should be included in the plot (default: TRUE)

noPrompt

logical indicating if the prompt when many peaks are being plotted will be suppressed (default: FALSE)

annotation

(Optional) A single string or a vector of strings for each plotted peak with additional annotations for the plot

...

Additional parameters to be sent to the graphics device

Value

NULL