Generates an RGB msImage representing the first 3 principal components. This image can be used to qualitatively evaluate the spatial heterogeneity of the sample.
# S4 method for msi.dataset
PCAImage(object, alignToSample = TRUE, seed = NULL)
RGB raster representing the first 3 principal components (see msImage).
msi.dataset-class object.
boolean (default = TRUE). If TRUE, the principal component scores are aligned to the pixel mean intensity.
set the random seed (default = NULL
).