expVarLabel.PCAScoreMatrix | R Documentation |
Labels of principal components from PCAScoreMatrix
## S3 method for class 'PCAScoreMatrix'
expVarLabel(x, choices, compact = FALSE)
x |
A |
choices |
Either a logical/integer vector to indicate which PCs to be
returned, or |
compact |
Logical, either a |
A character string vector of the same length as choices
(or
the same length as the column count of the PCAScoreMatrix), which are the
labels of the PCs
pcaMat <- PCAScoreMatrix(matrix(rnorm(15),ncol=3), c(0.25, 0.15, 0.1))
expVarLabel(pcaMat)
expVarLabel(pcaMat, choices=1:2)
expVarLabel(pcaMat, choices=1:2, compact=TRUE)
expVarLabel(pcaMat, choices=c(1,3), compact=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.