geom_pca_arrows: Eigen Value plot geom for tidymodel PCA

View source: R/geom_pca_arrows.R

geom_pca_arrowsR Documentation

Eigen Value plot geom for tidymodel PCA

Description

Eigen Value plot geom for tidymodel PCA

Usage

geom_pca_arrows(
  pca_rec,
  pc_x = 1,
  pc_y = 2,
  labels = TRUE,
  labels_fill = "white",
  labels_color = "#0A537D",
  labels_size = 0.25,
  label_font_size = 3,
  label_rect_padding = 0.25,
  labels_font_size = 3,
  labels_rect_padding = 0.25,
  ...
)

Arguments

pca_rec

The PCA recipe, a tidymodel object.

pc_x

PC shown on x-axis.

pc_y

PC shown on y-axis.

labels

If TRUE labels of the arrows are plotted.

labels_fill

Fill color of the labels

labels_color

Color of the labels text

labels_size

Size of the labels

labels_font_size

Size of the font in the labels

labels_rect_padding

Size of the padding around the labels

...

Arguments passed on to geom_label_repel, which is drawing the arrows.

Value

ggplot object


muhohl/geochem documentation built on March 4, 2025, 8:14 p.m.