overlayPlot {tofsims} | R Documentation

## 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, ...)

    ## S4 method for signature '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

### Author(s)

Lorenz Gerber lorenz.gerber@slu.se

### Examples

    library(tofsimsData)
    data('tofsimsData')
    overlayPlot(list(testImage, testSpectra))

[Package tofsims version 1.12.0 Index]