imageMatrix {tofsims} | R Documentation |
generic method to obtain imageMatrix
Method imageMatrix for class MassImage
imageMatrix(object, ...) ## S4 method for signature 'MassImage' imageMatrix(object) ## S4 method for signature 'PCA' imageMatrix(object, comp, ...)
object |
object of class MassImage |
... |
additional args |
comp |
numeric which component |
numeric matrix
matrix numeric
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)