WH.plot_multiple_Spanish.funs: Plot the variables of a PCA of histogram variables...

View source: R/principal_components.R

WH.plot_multiple_Spanish.funsR Documentation

Plot the variables of a PCA of histogram variables (Spanish-fan plot)

Description

Plots the quantiles of the histogram variables on a factorial plane after WH.MultiplePCA (or WH.1d.PCA): the quantiles of each variable form a fan.

Usage

WH.plot_multiple_Spanish.funs(
  res,
  axes = c(1, 2),
  var = 1,
  LABS = TRUE,
  multi = TRUE,
  corplot = TRUE
)

Arguments

res

The results of WH.MultiplePCA or of WH.1d.PCA.

axes

A vector of two integers, the factorial axes (default c(1, 2)).

var

A vector of integers, the variables to plot.

LABS

A logical value (default TRUE): if TRUE the quantiles are labelled.

multi

A logical value: TRUE (default) if res comes from WH.MultiplePCA, FALSE if it comes from WH.1d.PCA.

corplot

A logical value: if TRUE (default) the correlations are plotted (circle of correlations), otherwise the coordinates.

Value

The plot is drawn on the current device and the ggplot object is returned invisibly.

Examples

res <- WH.MultiplePCA(BLOOD, list.of.vars = c(1:3), graph = FALSE)
WH.plot_multiple_Spanish.funs(res, axes = c(1, 2), var = c(1:3))

HistDAWass documentation built on Oct. 19, 2026, 1:06 a.m.