MVA.loadplot {RVAideMemoire} | R Documentation |
Loading plot of multivariate analyses
Description
Displays a loading plot of a multivariate analysis.
Usage
MVA.loadplot(x, xax = 1, yax = 2, fac = NULL, set = c(12, 1, 2), space = 1, map = TRUE,
xlab = NULL, ylab = NULL, main = NULL, points = TRUE, ident = TRUE, links = TRUE,
line = TRUE, labels = NULL, main.pos = c("bottomleft", "topleft","bottomright",
"topright"), main.cex = 1.3, legend = FALSE, legend.pos = c("topleft", "topright",
"bottomleft", "bottomright"), legend.title = NULL, legend.lab = NULL, pch = 16,
cex = 1, col = 1, lwd = 1, lty = 1, drawextaxes = TRUE, drawintaxes = TRUE, xlim = NULL,
ylim = NULL)
Arguments
x |
a multivariate analysis (see Details). |
xax |
the horizontal axis. |
yax |
the vertical axis. This can be set to |
fac |
only used for one-dimensional graphs. An optional factor defining groups of variables. |
set |
variables to be displayed, when several sets are available (see Details). |
space |
variables to be displayed, when several spaces are available (see Details). |
map |
logical indicating if a two-dimensional ( |
xlab |
only used for two-dimensional graphs. Legend of the horizontal axis. If |
ylab |
legend of the vertical axis. If |
main |
optional title of the graph. |
points |
only used for two-dimensional graphs. If |
ident |
logical indicating if variable names should be displayed. Only used when |
links |
only used for two-dimensional graphs when |
line |
only used for one-dimensional graphs when |
labels |
only used if |
main.pos |
only used for one-dimensional graphs. Position of the title, if |
main.cex |
size of the title, if |
legend |
logical indicating if a legend should be added to the graph. |
legend.pos |
position of the legend, if |
legend.title |
optional title of the legend, if |
legend.lab |
legend labels, if |
pch |
only used for two-dimensional graphs. Symbol(s) used for points, when points are displayed (see |
cex |
size of the points and/or of the variable names. For two-dimensional graphs: if |
col |
color(s) used for points, variable names and/or lines/sticks. For one-dimensional graphs, can be a vector of length one or a vector giving one value per line. For two-dimensional graphs: if |
lwd |
width of lines. For one-dimensional graphs, can be a vector of length one or a vector giving one value per line. For two-dimensional graphs: if |
lty |
only used for one-dimensional graphs. Can be a vector of length one or a vector giving one value per line. |
drawextaxes |
logical indicating if external axes should be drawn. |
drawintaxes |
only used for two-dimensional graphs. Logical indicating if internal axes should be drawn. |
xlim |
only used in two-dimensional graphs. Limits of the horizontal axis. If |
ylim |
limits of the vertical axis. If |
Details
This function should not be use directly. Prefer the general MVA.plot
, to which all arguments can be passed.
Many multivariate analyses are supported, from various packages:
- PCA: prcomp
, princomp
, dudi.pca
, rda
, pca
, pca
.
- sPCA: spca
.
- IPCA: ipca
.
- sIPCA: sipca
.
- PLS-DA (PLS2 on a dummy-coded factor): plsda
. X space only.
- sPLS-DA (sPLS2 on a dummy-coded factor): splsda
. X space only.
- CPPLS: mvr
. X space only.
- PLSR: mvr
, pls
, plsR
(plsRglm package). X space only.
- sPLSR: pls
. X space only.
- PLS-GLR: plsRglm
(plsRglm package).
- PCR: mvr
.
- CDA: discrimin
, discrimin.coa
.
- NSCOA: dudi.nsc
.
- MCA: dudi.acm
.
- Mix analysis: dudi.mix
, dudi.hillsmith
.
- PCIA: procuste
. Set 1 is X, set 2 is Y.
- RDA (or PCAIV): pcaiv
, pcaivortho
, rda
. With rda
, space 1 is constrained space, space 2 is unconstrained space. Only constrained space is available with pcaiv
, the opposite for pcaivortho
.
- CCorA: rcc
. Space 1 is X, space 2 is Y.
- rCCorA: rcc
. Space 1 is X, space 2 is Y.
- CIA: coinertia
. Space 1 is X, space 2 is Y.
- 2B-PLS: pls
. Space 1 is X, space 2 is Y.
- 2B-sPLS: pls
. Space 1 is X, space 2 is Y.
- rGCCA: wrapper.rgcca
. Space can be 1 to n, the number of blocks (i.e. datasets).
- sGCCA: wrapper.sgcca
. Space can be 1 to n, the number of blocks (i.e. datasets).
- DIABLO: block.plsda
, block.splsda
. Space can be 1 to n, the number of blocks (i.e. datasets).
Author(s)
Maxime HERVE <maxime.herve@univ-rennes1.fr>
Examples
require(ade4)
data(olympic)
PCA <- dudi.pca(olympic$tab,scannf=FALSE)
MVA.plot(PCA,"load")