pcaLoadings {tofsims} | R Documentation

## generic accessor for slot pcaLoadings

### Description

generic accessor for slot pcaLoadings

PCA accessor `pcaLoadings`, loading matrix

PCA accessor `pcaLoadings`, loading matrix

### Usage

    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

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

[Package tofsims version 1.20.0 Index]