geom_label_pca | R Documentation |
Vector's Label for PCA bi-plot
geom_label_pca(
pca_recipe,
include_vars = NULL,
x = PC1,
y = PC2,
geom_label_fun = ggplot2::geom_label,
geom_label_args = list(color = "midnightblue"),
...
)
pca_recipe |
Object class recipe that already |
include_vars |
Variable to be included in the arrow, |
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_label_fun |
Labelling geom function |
geom_label_args |
Args to |
... |
Args to |
plot label
library(lbmod)
prep_pca(iris) |>
pca_scatter_plot(ggplot2::aes(color = Species)) +
geom_label_pca(prep_pca(iris))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.