mq_baseline_plot: Plot the result of optimal baseline correction

Description Usage Arguments

View source: R/mq_baseline_plot.R

Description

This function plots a selected baseline-corrected Raman spectrum. Optionally, the original spectrum can be added (for reference). At the moment the function assumes that the cells are in the same order in the baseline- corrected and original data.

Usage

1
2
3
4
5
6
7
8
mq_baseline_plot(
  mscorr,
  msorig = NULL,
  i = 1L,
  addorig = FALSE,
  methodused = "SNIP",
  ...
)

Arguments

mscorr

a list of MALDIquant::massSpectrum objects after baseline correction

msorig

an optional list of MALDIquant::massSpectrum objects before baseline correction (defaults to NULL)

i

an integer (defaults to 1) selecting the cell number. Cannot be larger than the number of cells in the mscorr list

addorig

a boolean indicating wether or not to add the spectrum before baseline correction to the plot. If the list containing this data is not supplied, an error will be thrown (in the future this should be a warning). Defaults to FALSE

methodused

a string indicating which method was used for baseline correction. Only used in the plot title. Defaults to "SNIP".

...

additional parameters passed on to plot


CMET-UGent/MicroRaman documentation built on July 25, 2020, 6:20 p.m.