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)NULL for a one-dimensional graph.12 (default) for both sets, 1 for X, 2 for Y.space is the number of the space to be plotted.TRUE, default) or a one-dimensional graph should be drawn. A one-dimensional graph can show loadings for one or two dimensions, both horizontally.NULL (default), automatic labels are used depending on the multivariate analysis.NULL (default), automatic labels are used depending on the multivariate analysis.FALSE, lines or points (see links) are replaced with their corresponding label (defined by labels).points=TRUE for two-dimensional graphs.points=TRUE. Logical indicating if variables should be linked to the origin of the graph. If FALSE, points are displayed at the extremity of the segments.yax=NULL. Logical indicating if loadings should be linked (default) as displayed as sticks.ident=TRUE. Names of the variables. If NULL (default), labels correspond to variable names found in the data used in the multivariate analysis.main is not NULL. Default to "bottomleft".main is not NULL.legend is TRUE. Default to "topleft".legend is TRUE.legend is TRUE. If NULL for a one-dimensional graph, dimension names are used. If NULL for a two-dimensional graph, levels of the factor defined by fac are used.links). If fac is not NULL, can be a vector of length one or a vector giving one value per group. Otherwise a vector of fac is not NULL, can be a vector of length one or a vector giving one value per group; otherwise a vector of any length can be defined, which is recyfac is not NULL, can be a vector of lenfac is not NULL, can be a vector of length one or a vector giving one value per groupNULL, limits are computed automatically.NULL, limits are computed automatically.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.
- LDA: lda, discrimin.
- PLS-DA (PLS2 on a dummy-coded factor): plsda. X space only.
- sPLS-DA (sPLS2 on a dummy-coded factor): splsda. X space only.
- Multilevel (s)PLS-DA ((s)PLS-DA on a dummy-coded factor): multilevel. X space only. Package 'mixOmics' version >= 5.0.4.
- CPPLS: mvr. X space only.
- PLSR: mvr, pls, plsR. X space only.
- sPLSR: pls. X space only.
- Multilevel (s)PLSR: multilevel. X space only. Package 'mixOmics' version >= 5.0.4
- PLS-GLR: plsRglm.
- 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.
- Multilevel 2B-(s)PLS: pls. Space 1 is X, space 2 is Y. Package 'mixOmics' version >= 5.0.4.
- 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).require(ade4)
data(olympic)
PCA <- dudi.pca(olympic$tab,scannf=FALSE)
MVA.plot(PCA,"load")Run the code above in your browser using DataLab