fortify_dimred {opticskxi} | R Documentation |
Fortify a dimension reduction object
Description
Fortify a dimension reduction object
Usage
fortify_dimred(m_dimred, m_vars = NULL, v_variance = NULL,
sup_vars = NULL, var_digits = 1)
Arguments
m_dimred |
Projection matrix |
m_vars |
Rotation matrix (optional) |
v_variance |
Explained variance (optional) |
sup_vars |
Optional supplementary variables |
var_digits |
Explained variance percent digits |
Value
Data frame
See Also
Examples
pca <- prcomp(iris[-5])
df_pca <- fortify_dimred(pca$x)
[Package opticskxi version 0.1 Index]