ggmca_initial_dims {ggfacto} | R Documentation |
Plot Initial Dimensions (Active Variables) of Multiple Correspondence Analysis
Description
This function mostly have an educational value : it shows the
initial dimensions of the Multiple Correspondence Analysis (active variables)
in their initial reference frame. It shows the n dimensional space before the
analysis is done. To see initial dimensions axes in the space built by the
analysis (principal axes), use ggmca_with_base_ref
.
Usage
ggmca_initial_dims(
res.mca = res.mca,
data,
proj_just = c(1.5, 2),
cleannames = TRUE,
keep = NULL
)
Arguments
res.mca |
An object created with |
data |
The data in which to find the supplementary variables, etc. |
proj_just |
Horizontal justification of text of the coordinates on axes, as a character vector of length 2 (x and y). |
cleannames |
Set to |
keep |
A character vector of the name of active variables to keep. |
Value
A ggplot
object to be printed in the
'RStudio' Plots pane. Possibility to add other gg objects with +
.
Sending the result through ggi
will draw the
interactive graph in the Viewer pane using ggiraph
.
Examples
data(tea, package = "FactoMineR")
res.mca <- MCA2(tea, active_vars = 1:18)
ggmca_initial_dims(res.mca, data = tea)