pca_scatter_plot | R Documentation |
PCA Scatter Plot
pca_scatter_plot(
pca_recipe,
mapping = NULL,
x = PC1,
y = PC2,
geom_type = geom_point,
alpha = 0.8,
size = 2,
...
)
pca_recipe |
object class recipe that already |
mapping |
aesthetic i.e. |
x |
unquoted name to specify which principle component to plot in x-axis (must be one of PC1, PC2, PC3, ... ,etc.) |
y |
unquoted name to specify which principle component to plot in y-axis (must be one of PC1, PC2, PC3, ... ,etc.) |
geom_type |
unquoted name to specify type of geom to plot: |
alpha |
passed to |
size |
passed to |
... |
passed to |
plot
library(magrittr)
library(lbmod)
iris %>%
prep_pca() %>%
pca_scatter_plot(ggplot2::aes(color = Species))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.