Learn R Programming

tofsims (version 1.0.2)

pcaScores: 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))

## S3 method for class 'PCA,ANY': pcaScores(object)

## S3 method for class '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

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

Run the code above in your browser using DataLab