coloringLabels: create a vector of color names for the levels of an MCA from...

coloringLevelsR Documentation

create a vector of color names for the levels of an MCA from the color names of the variables.

Description

coloringLabels: creates a vector of color names for the levels (i.e., columns) of an MCA from the color names of the variables.

Usage

coloringLevels(levelsNames, colorOfVariables = NULL)

Arguments

levelsNames

The names of the levels of the columns of an MCA as run, for example, by ExPosition::epcMCA. Could be, for example the names of the fj factor scores.

colorOfVariables

A vector of colors for the variables (should match the values obtained from the levels). if NULL (default) or if the numbers of variables do not match the number derived from levelsNames then get the colors from

Details

If colorOfVariables is provided the colors are used in the order in which the variables appear in the list of the levels.

Value

A list with 2 vectors: color4Levels the colors of the labels and color4Variables the colors of the variables (in the order in which they appeared).

Author(s)

Hervé Abdi

See Also

prettyGraphsColorSelection getVarNames

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

HerveAbdi/data4PCCAR documentation built on Sept. 11, 2022, 4:19 p.m.