View source: R/getBiplot4PCA.R
| getBiplotCoor | R Documentation |
ExPosition::epPCA().getBiplotCoor
Computes the biplot coordinates of variables
for a PCA computed with ExPosition::epPCA().
getBiplotCoor(res.epPCA, varLength = NULL, axis1 = 1, axis2 = 2)
res.epPCA |
the output of |
varLength |
the length of the variables.
When |
axis1 |
horizontal axis ( |
axis2 |
vertical axis ( |
getBiplotCoor projects the "biploted"
variables on the singular vectors (equivalent to a projection
as supplementary elements) and rescale the output
so that the variables have the correct length.
Note that only the positive part of the variables is kept.
a list (of class 'coor4biplot')
with 1) coordArrow the coordinates of the arrows.
These coordinates can be used, for example, to
plot these arrows on a graph created by
createFactorMap
and 2) constraints4Biplot the constraints
to be used for the maps (created, e.g., by
prettyPlot
or createFactorMap). See also
minmaxHelper.
Hervé Abdi
addArrowsAndNames
epPCA
minmaxHelper
prettyPlot
createFactorMap
## Not run:
data("twentyWines") # get the 20 wines data set
resPCA <- ExPosition::epPCA(twentyWines$df.active,
scale = FALSE, graphs = FALSE) # PCA
getCoordinates <- getBiplotCoor(resPCA) # get biplot coordinates
# to plot them see help for addArrowsAndNames
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.