pcaScores: generic accessor for slot pcaScores

Description Usage Arguments Value Examples

Description

generic accessor for slot pcaScores

PCA accessor pcaScores, pcaScores matrix

PCA accessor pcaScores, pcaScores matrix

Usage

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

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

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