PCAScoreMatrix: Construct a S3-class PCAScoreMatrix object

View source: R/PCAScoreMatrix.R

PCAScoreMatrixR Documentation

Construct a S3-class PCAScoreMatrix object

Description

Construct a S3-class PCAScoreMatrix object

Usage

PCAScoreMatrix(scoreMatrix, expVar)

Arguments

scoreMatrix

Numeric matrix, objects in rows and PCs in columns

expVar

Numeric vector, length must equal the number of columns of scoreMatrix, explained variance by respective PCs

Value

A S3-class PCAScoreMatrix object, which is a score matrix with explained variances (expVar) as attribute.

See Also

as.matrix.PCAScoreMatrix, expVar.PCAScoreMatrix, print.PCAScoreMatrix. This function is usually not called by the end user; instead, it is used by the function pcaScores

Examples


myPCmat <- PCAScoreMatrix(matrix(rnorm(15),ncol=3), c(0.25, 0.15, 0.1))
myPCmat


bedapub/ribiosPlot documentation built on Sept. 1, 2023, 6:50 p.m.