View source: R/misc_functions.R
pcaplot | R Documentation |
Display a PCA Plot of the Data
pcaplot(mat, sub, center = TRUE, scale = TRUE, plottitle = "PCA")
mat |
The data frame on which to perform pca. |
sub |
The number of samples in this batch, from left to right in the data frame |
center |
a logical value indicating whether the variables should be shifted to be zero centered. The default is TRUE |
scale |
a logical value indicating whether the variables should be scaled to have unit variance before the analysis takes place. The default is TRUE |
plottitle |
The title to display above your PCA plot. The default is "PCA". |
A PCA plot is displayed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.