pca_scree_plot: PCA Screeplot

View source: R/pca.R

pca_scree_plotR Documentation

PCA Screeplot

Description

PCA Screeplot

Usage

pca_scree_plot(
  pca_recipe,
  terms = "percent_var",
  title = "Scree Plot",
  y = NA,
  ...
)

Arguments

pca_recipe

Object class recipe that already step_pca

terms

(character) To specify the y-axis, must be one of "var" for variance, "percent_var" for percent variance, and "cum_var" for cumulative percent variance

title

(character) Title of the plot

y

Y-axis label: NA for default label, character to specify your own label, or NULL to remove label

...

passed to ggplot2::labs

Value

plot

Examples

library(magrittr)
library(lbmod)
iris %>%
  prep_pca() %>%
  pca_scree_plot()

Lightbridge-KS/lbmod documentation built on Jan. 28, 2024, 6:21 p.m.