fortify_pca | R Documentation |
Get and fortify PCA
fortify_pca(m_data, ..., sup_vars = NULL)
m_data |
Input matrix |
... |
Passed to stats::prcomp |
sup_vars |
Optional supplementary variables |
Fortified dimension reduction
fortify_dimred, fortify_ica
df_pca <- fortify_pca(iris[-5])
df_pca <- fortify_pca(iris[-5], sup_vars = iris[5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.