image {tofsims} | R Documentation

## set a generic method for image

### Description

set a generic method for image

Method to visualize an IMS Mass Image of class `MassImage`

image for PCA class type loading plots

### Usage

    image(x, ...)

    ## S4 method for signature 'MassImage'
    image(x, ..., mzSelect = NULL)

    ## S4 method for signature 'PCA'
    image(x, comp, ...)

### Arguments

`x` | object object with image data
`...` | additional args
`mzSelect` | vector, which m/z to combine for visualization. if none are chosen, the TIC is shownhel
`comp` | numeric which component to visualize

### Value

graphical output

image plot of the ToF SIMS image data

### Examples

    testImage<-MassImage('dummy')
    image(testImage)
    ## Not run:
    library(tofsimsData)
    data(tofsimsData)
    image(testImage)
    ## End(Not run)
    library(tofsimsData)
    data(tofsimsData)
    testImage<-PCAnalysis(testImage,3)
    image(analysis(testImage, 1), comp = 1)

[Package tofsims version 1.8.0 Index]