Learn R Programming

tofsims (version 1.0.2)

overlayPlot: generic overlayPlot

Description

generic overlayPlot

This function takes as input a list with objects of type MassSpectra. The easiest way to obtain the input data, is to use mclapply from the parallel package.

Usage

overlayPlot(objectList, ...)

## S3 method for class 'list': overlayPlot(objectList, ..., type = "l", mzRange = c(1, 200), PeakListObj = NULL, cex.legend = 0.5)

Arguments

objectList
list with object of type MassSpectra
...
additional args
type
character type of plot, usually 'l'
mzRange
vector numeric lower and upper range for plotting the spectra
PeakListObj
object a PeakList object can be provided to plot peaks
cex.legend
numeric text size

Value

  • graphical output

    graphical output

Examples

Run this code
library(tofsimsData)
data('tofsimsData')
overlayPlot(list(testImage, testSpectra))

Run the code above in your browser using DataLab