Learn R Programming

PROcess (version 1.48.0)

specZoom: Plotting a Spectrum with Peaks

Description

Function for plotting an object returned by isPeak.

Usage

specZoom(pks, xlim = NULL, cols = c("cyan", "red", "black"), ...)

Arguments

pks
an object (a list) returned by isPeak.
xlim
a range of m/z values over which a zoomed-in view of the spectrum is desired.
cols
a vector of color specification for the smooth (signal), peaks and local noise.
...
further arguments that get passed on to plot.

Examples

Run this code
example(isPeak)
specZoom(pkobj, xlim=c(5000, 10000))

Run the code above in your browser using DataLab