tidy_pca_screeplot: Create PCA Scree Plot

View source: R/unsupervised-pca.R

tidy_pca_screeplotR Documentation

Create PCA Scree Plot

Description

Visualize variance explained by each principal component

Usage

tidy_pca_screeplot(pca_obj, type = "proportion", add_line = TRUE)

Arguments

pca_obj

A tidy_pca object

type

Character; "variance" or "proportion" (default)

add_line

Logical; add horizontal line at eigenvalue = 1? (for Kaiser criterion)

Value

A ggplot object


tidylearn documentation built on Feb. 6, 2026, 5:07 p.m.