pca_biplot | R Documentation |
Plot PCA bi-plot from recipe
object that has step_pca
pca_biplot(
pca_recipe,
mapping = NULL,
x = PC1,
y = PC2,
include_vars = NULL,
alpha = 0.8,
size = 2,
geom_type_scatter = geom_point,
x_origin = 0,
y_origin = 0,
arrow_scale = 1,
color_arrow = "black",
geom_label_fun = ggplot2::geom_label,
geom_label_args = list(color = "midnightblue"),
...
)
pca_recipe |
Object class recipe that already |
mapping |
|
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.) |
alpha |
point transparency (passed to |
size |
size of point (passed to |
geom_type_scatter |
(unquoted name) Type of scatter plot: |
x_origin |
(numeric) x-origin of the arrow (passed to |
y_origin |
(numeric) y-origin of the arrow (passed to |
arrow_scale |
(numeric) scale factor of the arrow (passed to |
color_arrow |
(character) color of the arrow (passed to |
... |
passed to |
geom_type |
unquoted name of geom to use, must be one of |
hjust |
(numeric) passed to |
vjust |
(numeric) passed to |
size_txt |
(numeric) size of |
color |
(character) color of |
check_overlap |
passed to |
label.padding |
passed to |
label.r |
passed to |
label.size |
passed to |
segment.color |
color of the segment, |
min.segment.length |
minimum length that will draw line segment (passed to |
force |
pushing force for overlapping label (passed to |
force_pull |
pulling force to data points (passed to |
max.overlaps |
maximum label overlapping (passed to |
size_ggrepel |
size of the label (passed to |
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.