"reduceBaseline"(object, method = "median", ..., pixel = pixels(object), plot = FALSE)
## Median baseline reduction
reduceBaseline.median(x, blocks=500, fun=min, spar=1, ...)
MSImageSet
.MSImageSet
with the baseline-subtracted spectra.
method
. In this case it should take the following arguments:
x
: A numeric
vector of intensities.
...
: Additional arguments.
A user-created function should return a numeric
vector of the same length. with the baseline-subtracted intensities.
Internally, pixelApply
is used to apply the baseline reduction. See its documentation page for more details on additional objects available to the environment installed to the baseline reduction function.
MSImageSet
,
pixelApply
data <- generateImage(as="MSImageSet")
reduceBaseline(data, method="median", plot=interactive())
Run the code above in your browser using DataLab