Learn R Programming

tofsims (version 1.0.2)

image: 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, ...)

## S3 method for class 'MassImage': image(x, ..., mzSelect = NULL)

## S3 method for class '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

Run this code
testImage<-MassImage('dummy')
image(testImage)
library(tofsimsData)
data(tofsimsData)
image(testImage)
library(tofsimsData)
data(tofsimsData)
testImage<-PCAnalysis(testImage,3)
image(analysis(testImage, 1), comp = 1)

Run the code above in your browser using DataLab