Learn R Programming

tofsims (version 1.0.2)

imageMatrix: generic method to obtain imageMatrix

Description

generic method to obtain imageMatrix

Method imageMatrix for class MassImage

Usage

imageMatrix(object, ...)

## S3 method for class 'MassImage': imageMatrix(object)

## S3 method for class 'PCA': imageMatrix(object, comp, ...)

Arguments

object
object of class MassImage
...
additional args
comp
numeric which component

Value

  • numeric matrix

    matrix numeric

Examples

Run this code
library(tofsimsData)
data(tofsimsData)
## the TIC matrix can be extracted 
dataMatrix <- imageMatrix(testImage)
dim(dataMatrix)
## the matrix can be visualized with the 
## normal image() function
image(dataMatrix)

Run the code above in your browser using DataLab