Learn R Programming

tofsims (version 1.0.2)

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

## S3 method for class 'PCA,missing': pcaLoadings(object)

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

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

Run the code above in your browser using DataLab