pcaScores {tofsims}R Documentation

generic accessor for slot pcaScores

Description

generic accessor for slot pcaScores

PCA accessor pcaScores, pcaScores matrix

PCA accessor pcaScores, pcaScores matrix

Usage

pcaScores(object, comps = c(1, 2))

## S4 method for signature 'PCA,ANY'
pcaScores(object)

## S4 method for signature 'PCA,numeric'
pcaScores(object, comps = c(1, 2))

Arguments

object

object of class PCA

comps

numeric number of components

Value

contents of slot pcaScores

vector or matrix numeric with scores according comps

Examples

library(tofsimsData)
data(tofsimsData)
testImage<-PCAnalysis(testImage,4)
plot(pcaScores(analysis(testImage,1), comps = c(1,2)))

[Package tofsims version 1.14.0 Index]