pcaLoadings: generic accessor for slot pcaLoadings

Description Usage Arguments Value Examples

Description

generic accessor for slot pcaLoadings

PCA accessor pcaLoadings, loading matrix

PCA accessor pcaLoadings, loading matrix

Usage

1
2
3
4
5
6
7
pcaLoadings(object, comps = c(1, 2))

## S4 method for signature 'PCA,missing'
pcaLoadings(object)

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

Arguments

object

object of class PCA

comps

numeric number of components

Value

contents of slot pcaLoadings

matrix numeric with loadings

vector or matrix numeric with loadings according comps

Examples

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

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