Learn R Programming

MALDIquant (version 1.7)

iplot-methods: Interactive plot of MassSpectrum objects.

Description

This method provides an interactive plot to investigate MassSpectrum and MassPeaks objects more easily.

Usage

## S3 method for class 'MassSpectrum':
iplot(object, peaks, \dots)

Arguments

object
MassSpectrum object or a list of MassSpectrum objects.
peaks
MassPeaks object or a list of MassPeaks objects.
...
arguments to be passed to plot

code

iplot

Details

iplot depends on getGraphicsEvent which currently supports only a few interactive graphic devices (only the windows() (Windows) and the X11(type="Xlib") (Unix) devices).

iplot supports the following keyboard shortcuts: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

References

See website: http://strimmerlab.org/software/maldiquant/

See Also

MassPeaks, MassSpectrum, plot,MassSpectrum,missing-method, labelPeaks,MassPeaks-method, getGraphicsEvent

Examples

Run this code
## load library
library("MALDIquant")

## load example data
data("fiedler2009subset", package="MALDIquant")

## run a typical workflow

## transform intensities
s <- transformIntensity(fiedler2009subset, sqrt)

## smooth spectra
s <- transformIntensity(s, movingAverage)

## remove baseline
s <- removeBaseline(s)

## detect peaks
p <- detectPeaks(s)

## create an interactive plot for the first spectrum
iplot(s[[1]])

## create an interactive plot for the first spectrum
## and its corresponding peaks
iplot(s[[1]], p[[1]])

## create an interactive plot all 16 example spectra
## and their corresponding peaks
iplot(s, p)

Run the code above in your browser using DataLab