pca_load_plot | R Documentation |
Plot Loading Score from PCA
pca_load_plot(
pca_recipe,
num_comp = 1:4,
num_top_vars = Inf,
fill = c("#b6dfe2", "#0A537D"),
nrow = NULL,
ncol = NULL,
...
)
pca_recipe |
Object class recipe that already |
num_comp |
Integer vector indicate which PCs to show. |
num_top_vars |
Integer indicate number of top variables, ranking by absolute loading score, to show. Default |
fill |
(character) Fill of positive & negative values |
nrow |
(numeric) Number of rows in facet |
ncol |
(numeric) Number of columns in facet |
... |
passed to |
plot
library(magrittr)
library(lbmod)
iris %>%
prep_pca() %>%
pca_load_plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.