Skip to contents

Plot ion chromatogram from MetaboProfile.

Usage

plotChromatogram(
  processed_data,
  cls = NULL,
  group = FALSE,
  alpha = 1,
  aggregationFun = "max",
  ...
)

# S4 method for MetaboProfile
plotChromatogram(
  processed_data,
  cls = NULL,
  group = FALSE,
  alpha = 1,
  aggregationFun = "max",
  ...
)

Arguments

processed_data

S4 object of class MetaboProfile

cls

sample information column to use for plot colours.

group

average samples within groups. If cls is NULL, plot average chromatogram across all samples.

alpha

plot line transparancy alpha

aggregationFun

value to pass to xcms::chromatogram() for chromatogram type. Defaults to base peak ("max").

...

arguments to pass to erah::plotChr()