Visualize both observations and variables in PC space
tidy_pca_biplot(
pca_obj,
pc_x = 1,
pc_y = 2,
color_by = NULL,
arrow_scale = 1,
label_obs = FALSE,
label_vars = TRUE
)A ggplot object
A tidy_pca object
Principal component for x-axis (default: 1)
Principal component for y-axis (default: 2)
Optional column name to color points by
Scaling factor for variable arrows (default: 1)
Logical; label observations? (default: FALSE)
Logical; label variables? (default: TRUE)