Learn R Programming

tidylearn (version 0.1.0)

tidy_pca_screeplot: Create PCA Scree Plot

Description

Visualize variance explained by each principal component

Usage

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

Value

A ggplot object

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)