fortify_pca {opticskxi} | R Documentation |
Get and fortify PCA
Description
Get and fortify PCA
Usage
fortify_pca(m_data, ..., sup_vars = NULL)
Arguments
m_data |
Input matrix |
... |
Passed to stats::prcomp |
sup_vars |
Optional supplementary variables |
Value
Fortified dimension reduction
See Also
Examples
df_pca <- fortify_pca(iris[-5])
df_pca <- fortify_pca(iris[-5], sup_vars = iris[5])
[Package opticskxi version 0.1 Index]