View source: R/mq_baseline_plot.R
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.
1 2 3 4 5 6 7 8 | mq_baseline_plot(
mscorr,
msorig = NULL,
i = 1L,
addorig = FALSE,
methodused = "SNIP",
...
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.