Usage
pca(mat, cor = FALSE, dim = min(nrow(mat),ncol(mat)))
## S3 method for class 'pca':
summary(object, dim = length(object$sdev), ...)
## S3 method for class 'pca':
scores(x, labels = NULL, dim = length(x$sdev))
## S3 method for class 'pca':
loadings(x, dim = length(x$sdev), digits = 3, cutoff = 0.1)
Arguments
mat
a matrix or dataframe of interest, samples as rows,
attributes as columns
cor
logical: whether to use a correlation matrix (if TRUE),
or covariance matrix (if FALSE)
dim
the number of dimensions to return
object
an object of class pca
labels
an (optional) vector of labels to identify points
digits
number of digits to report
cutoff
threshold to suppress printing small values
...
arguments to pass to function summary