name_axes: Name the Axes of an Analysis

View source: R/model.R

name_axesR Documentation

Name the Axes of an Analysis

Description

Gives the axes of an analysis the names its interpretation arrived at: every graph (ggfacto) prints them in its axis titles, and every interpretation table (interpret) in its axis headings. The names are given in the order of the axes; an empty name, '""', leaves an axis unnamed, so that 'name_axes(res, "", "")' can wait in a script to be filled.

Usage

name_axes(res, ...)

Arguments

res

An analysis made with multiple_correspondence_analysis, correspondence_analysis or principal_component_analysis (or with 'FactoMineR' or 'GDAtools').

...

The names, as character strings: the first names axis 1, the second axis 2, and so on. A name given as '"3" = "..."' names axis 3 alone, and leaves the others as they are.

Value

The analysis, its axes named.

Examples

data(tea, package = "FactoMineR")
res.mca <- multiple_correspondence_analysis(tea, 1:18)
interpret(res.mca, axes = 1:2)

res.mca <- name_axes(res.mca, "tea as a habit / tea as an outing", "tea time / tea shop")

ggfacto(res.mca)


ggfacto documentation built on Sept. 23, 2026, 1:08 a.m.