plot_loading: Creats a plot of factor loadings

View source: R/main.R

plot_loadingR Documentation

Creats a plot of factor loadings

Description

Creats a plot of factor loadings

Usage

plot_loading(
  f,
  font_family = "sans",
  font_size = 14,
  loading_text_size = font_size * 0.8,
  factor_names = sort(colnames(f$loadings)),
  nudge_loadings = 0.05
)

Arguments

f

output of a factor analysis from the psych::fa function

font_family

Name of font

font_size

Size of font

loading_text_size

size of loading font,

factor_names

names of the factors #'

nudge_loadings

nudge loadings on x dimension

Examples

library(GPArotation)
library(psych)
fit <- fa(psych::bfi[,1:25], nfactors = 5)
plot_loading(fit)

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