plot_category_projections: Plot Category Projections in MCA Space

View source: R/alsi.R

plot_category_projectionsR Documentation

Plot Category Projections in MCA Space

Description

Visualizes category coordinates in a 2D MCA subspace and optionally displays projections onto the aggregated ALSI direction.

Usage

plot_category_projections(
  fit,
  K,
  alpha_vec = NULL,
  dim_pair = c(1, 2),
  cex = 0.8,
  top_n = 15
)

Arguments

fit

MCA fit object (class mca_fit)

K

Number of dimensions in retained subspace

alpha_vec

Optional aggregated direction vector (from alsi())

dim_pair

Integer vector of length 2, dimensions to plot (default: c(1,2))

cex

Character expansion for labels

top_n

Number of top categories to display by projection (default: 15)

Value

No return value, called for side effects. The function creates a scatter plot of category coordinates in the specified 2D subspace, with category labels displayed. If alpha_vec is provided, it also prints the top categories ranked by their absolute projection onto the ALSI direction to the console.


alsi documentation built on Feb. 17, 2026, 5:07 p.m.