MVA.scoreplot(x, xax = 1, yax = 2, scaling = 2, set = c(12, 1, 2), space = 1,
byfac = TRUE, fac = NULL, barycenters = TRUE, stars = TRUE, contours = FALSE,
dhist = TRUE, weights = 1, xlab = NULL, ylab = NULL, main = NULL, pch = 16,
cex = 1, col = 1, points = TRUE, labels = NULL, main.pos = c("bottomleft",
"topleft", "bottomright", "topright"), main.cex = 1.3, fac.lab = NULL,
fac.cex = 1, legend = FALSE, legend.pos = c("topleft", "topright", "bottomleft",
"bottomright"), legend.title = NULL, legend.lab = NULL, legend.cex = 1,
drawextaxes = TRUE, drawintaxes = TRUE, xlim = NULL, ylim = NULL,
keepmar = FALSE)NULL for a one-dimensional graph. The type of graph to be drawn in this case depends on the value of dhist.vegan package. See Details.12 (default) for both sets, 1 for rows or X, 2 for columns or Y.space is the number of the space to be plotted.TRUE, a separate score plot is displayed for each factor included in the analysis. In this case fac cannot be used and if main=NULL, the factor names are displayefac is not NULL. If TRUE (default), the name of each group (defined by fac.lab) is diplayed at the position of the barycenter of this group. Available for two-dimensional graphs and for dotcfac is not NULL. If TRUE (default), the individual of each group are linked to their corresponding barycenter.fac is not NULL. If TRUE, a polygon of contour is displayed for each group.TRUE (default), a density histogram is displayed. If FALSE, a dotchart is displayed.barycenters).NULL (default), automatic labels are used depending on the multivariate analysis.NULL (default), automatic labels are used depending on the multivariate analysis. Available for two-dimensional graphs and for density histograms in the one-dimensional case (see dhist).byfac=TRUE (see byfac).points). If 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 rpoints). Available for two-dimensional graphs and for dotcharts in the one-dimensional case (see dhist). For two-dimensional graphs: if fac is not NULL, can be a points). If 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 recycled if necessaFALSE, points are replaced with their corresponding label (defined by labels). Re-used for all graphs for MCA and mix analyses when byfac=TRUE (see byfac).points=FALSE and in dotcharts (see dhist). Names of the individuals. If NULL (default), labels correspond to row names of the data used in the multivariate analysis. Re-used for almain is not NULL. Default to "bottomleft". Re-used for all graphs for MCA and mix analyses when byfac=TRUE (see byfac).main is not NULL. Re-used for all graphs for MCA and mix analyses when byfac=TRUE (see byfac).fac is not NULL. Labels used to display barycenters in two-dimensional graphs or on the vertical axis of a dotchart in the one-dimensional case (see dhist). If NULL, levels of the factor deffac is not NULL and in two-dimensional graphs. Labels used to display barycenters. Can be a vector of length one or a vector giving one value per group. Re-used for all graphs for MCA and mix analyses when byfadhist).legend is TRUE. Default to "topleft".legend is TRUE. Not available for MCA and mix analyses when byfac=TRUE (see byfac).legend is TRUE. If NULL, labels defined by fac.labels are used (see fac.labels).legend is TRUE.dhist).NULL, limits are computed automatically. Re-used for all graphs for MCA and mix analyses when byfac=TRUE (see byfac).NULL, limits are computed automatically. Re-used for all graphs for MCA and mix analyses when byfac=TRUE (see byfac).MVA.plot, to which all arguments can be passed.
Many multivariate analyses are supported, from various packages:
- PCA: prcomp, princomp (if scores=TRUE), dudi.pca, rda, pca, pca. scaling can be defined for rda (see scores.rda).
- sPCA: spca.
- IPCA: ipca.
- sIPCA: sipca.
- PCoA: cmdscale (with at least on non-default argument), dudi.pco, wcmdscale (with at least one non-default argument), capscale, pco, pcoa.
- nMDS: monoMDS, metaMDS, nmds, isoMDS.
- 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.
- COA: dudi.coa, cca. Set 1 is rows, set 2 is columns. If set=12 (default), fac is not available and pch,cex, col can be defined differently for each set. scaling can be defined for rda (see scores.cca).
- DCOA: dudi.dec. Set 1 is rows, set 2 is columns. If set=12 (default), fac is not available and pch,cex, col can be defined differently for each set.
- PCIA: procuste. Set 1 is X, set 2 is Y. If set=12 (default), fac is not available and pch,cex, col can be defined differently for each set.
- DPCoA: dpcoa. Set 1 is categories, set 2 is collections. If set=12 (default), fac is not available and pch,cex, col can be defined differently for each set.
- 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. scaling can be defined for rda (see scores.rda).
- db-RDA (or CAP): capscale. Space 1 is constrained space, space 2 is unconstrained space.
- CCA: cca, cca. With rda, space 1 is constrained space, space 2 is unconstrained space. Only constrained space is available with cca. Set 1 is rows, set 2 is columns. scaling can be defined for cca (see scores.cca).
- CCorA: CCorA, rcc. Space 1 is X, space 2 is Y. With rcc a third space is available, in which coordinates are means of X and Y coordinates.
- rCCorA: rcc. Space 1 is X, space 2 is Y, space 3 is a "common" space in which coordinates are means of X and Y coordinates.
- CIA: coinertia. Space 1 is X, space 2 is Y, space 3 is a "common" space where X and Y scores are normed. In space 3, set 1 is X and set 2 is Y. If set=12 in space 3 (default), fac is not available and pch,cex, col can be defined differently for each set.
- 2B-PLS: pls. Space 1 is X, space 2 is Y, space 3 is a "common" space in which coordinates are means of X and Y coordinates.
- 2B-sPLS: pls. Space 1 is X, space 2 is Y, space 3 is a "common" space in which coordinates are means of X and Y coordinates.
- Multilevel 2B-(s)PLS: pls. Space 1 is X, space 2 is Y, space 3 is a "common" space in which coordinates are means of X and Y coordinates. Package 'mixOmics' version >= 5.0.4.
- rGCCA: rgcca, wrapper.rgcca. Space can be 1 to n, the number of blocks (i.e. datasets).
- sGCCA: sgcca, wrapper.sgcca. Space can be 1 to n, the number of blocks (i.e. datasets).data(iris)
PCA <- prcomp(iris[,1:4])
MVA.plot(PCA,"scores")
MVA.plot(PCA,"scores",fac=iris$Species,col=1:3,pch=15:17)Run the code above in your browser using DataLab