nameExpositionResults | R Documentation |
ExPosition
or InPosition
(for use with ggplot2
).nameExpositionResults
:
adds dimension names to the results of analyses performed with
ExPosition
(column names are needed for plots
created with ggplot2
).
nameExpositionResults(resExpo, names4Dimensions = "Dimension ")
resExpo |
the output of an analysis performed
by |
names4Dimensions |
names for the dimensions, Default: 'Dimension ' |
ExPosition
returns the results of its analysis in a list
of matrices
that comprises the factor scores, the contributions,
the cosines (etc. see documentation for ExPosition
).
The columns of these statistics
do not have names and this creates
a problem when using ggplot2
whose
syntax requires names for variables in aes()
.
the original results with their dimensions named or renamed.
Hervé Abdi
ExPosition
## Not run:
if(interactive()){
# Get the data from package data4PCCAR
df <- twentyWines$df.active
resPCA <- epPCA(df, scale = FALSE, graphs = FALSE, k = 1)
resPCA.named <- nameExpositionResults(resPCA)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.