plot.peak_list: Plot fitted peak shapes.

View source: R/get_peaks.R

plot.peak_listR Documentation

Plot fitted peak shapes.

Description

Visually assess integration accuracy by plotting fitted peaks over trace.

Usage

## S3 method for class 'peak_list'
plot(
  x,
  ...,
  chrom_list = NULL,
  index = 1,
  lambda = NULL,
  points = FALSE,
  ticks = FALSE,
  a = 0.5,
  color = NULL,
  cex.points = 0.5
)

Arguments

x

Peak_list object. Output from the get_peaks function.

...

Additional arguments to plot function.

chrom_list

List of chromatograms (retention time x wavelength matrices)

index

Index or name of chromatogram to be plotted.

lambda

Wavelength for plotting.

points

Logical. If TRUE, plot peak maxima. Defaults to FALSE.

ticks

Logical. If TRUE, mark beginning and end of each peak. Defaults to FALSE.

a

Alpha parameter controlling the transparency of fitted shapes.

color

The color of the fitted shapes.

cex.points

Size of points. Defaults to 0.5

Value

No return value, called for side effects.

Side effects

Plots a chromatographic trace from the specified chromatogram (chr) at the specified wavelength (lambda) with fitted peak shapes from the provided peak_list drawn underneath the curve.

Author(s)

Ethan Bass

See Also

get_peaks


chromatographR documentation built on Aug. 24, 2022, 9:06 a.m.