parallel_analysis: ggplot of parallel analysis from the psych package

View source: R/main.R

parallel_analysisR Documentation

ggplot of parallel analysis from the psych package

Description

ggplot of parallel analysis from the psych package

Usage

parallel_analysis(
  d,
  fm = "pa",
  factor_based = TRUE,
  vcolors = c("firebrick", "royalblue"),
  font_family = "sans",
  ...
)

Arguments

d

data to be analyzed

fm

factor method passed to psych::fa.parallel

factor_based

TRUE is factor-based and FALSE is principal component-based

vcolors

vector of 2 colors for lines

font_family

Name of font

...

parameters passed to psych::fa.parallel

Examples

d <- psych::bfi[,1:25]
parallel_analysis(d)

wjschne/WJSmisc documentation built on June 29, 2023, 8:04 a.m.