View source: R/visualization.R
plot_pca | R Documentation |
This function plots the Standard Desviation, Proportion of Variances, Accumulative Variance for each Principal Component, it returns a set of plots.
plot_pca(features, class, center = TRUE, scale = TRUE, list.plot = TRUE)
features |
A numeric matrix as input. |
class |
Response variable as numeric vector. |
center |
Must the features be centered (default TRUE). |
scale |
Must the features be scaled (default TRUE). |
list.plot |
If TRUE (default), return a list the plots summarizing the PCA process. If FALSE, return a simple plot (PC1 vs. PC2). |
A list of plots.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.