plot_loadings: Plotting loadings matrix

View source: R/plot_loadings.R

plot_loadingsR Documentation

Plotting loadings matrix

Description

plot_loadings plots elements of a column of the loadings matrix

Usage

plot_loadings(
  L_pj,
  Lsd_pj = NULL,
  At = 1:nrow(L_pj),
  whichfactor = 1,
  addtitle = TRUE,
  LabelPosition = "Right",
  Buffer = c(0, 0.1),
  Labels = rownames(L_pj),
  Cex = 1.2,
  legend_text = "Proportion of explained variance",
  interval_width = 1,
  ...
)

Arguments

L_pj

Loadings matrix for 'p' categories and 'j' factors

whichfactor

Integer, giving column of the loadings matrix to plot

addtitle

Boolean, whether to add a title

LabelPosition

Character, where to plot labels for rows of L_pj (Options: "Right","Above","Below")

Buffer,

how much to pad top and bottom of each panel

Labels,

Labels for rows of L_pj

Value

tagged list of outputs

L_pj_rot

Loadings matrix after rotation

Psi_rot

Factors after rotation

Hinv

Object used for rotation


James-Thorson/FishStatsUtils documentation built on Feb. 6, 2024, 4:26 a.m.