imageMatrix: generic method to obtain imageMatrix

Description Usage Arguments Value Examples

Description

generic method to obtain imageMatrix

Method imageMatrix for class MassImage

Usage

1
2
3
4
5
6
7
imageMatrix(object, ...)

## S4 method for signature 'MassImage'
imageMatrix(object)

## S4 method for signature 'PCA'
imageMatrix(object, comp, ...)

Arguments

object

object of class MassImage

...

additional args

comp

numeric which component

Value

numeric matrix

matrix numeric

Examples

1
2
3
4
5
6
7
8
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)

tofsims documentation built on April 29, 2020, 5:20 a.m.