pca {M3C} | R Documentation |
pca: A principal component analysis function
pca(mydata, K = FALSE, printres = FALSE, labels = FALSE)
mydata |
Data frame or matrix or M3C results object: if dataframe/matrix should have samples as columns and rows as features |
K |
Numerical value: if running on the M3C results object, which value was the optimal K? |
printres |
Logical flag: whether to print the PCA into current directory |
labels |
Factor: if we want to just display gender for example |
A PCA plot object
PCA <- pca(mydata)