plot3DVar

Variables 3D representation

In this type of graphical display, the variables X and Y are represented through their projections into the sphere defined either by X-variates or Y-variates. The variables X and Y being assumed to be of unit variance, their projections are inside a sphere of radius 1 centered at the origin called correlation sphere. Strongly associated (or correlated) variables are projected in the same direction from the origin. The greater the distance from the origin the stronger the association.

Note that this function also works for the case when there is a single data set (using a (s)PCA or a (s)PLS-DA result).

Usage in mixOmics

Variables 3D plots can be obtained in mixOmics via the function plot3DVar as displayed below:

## We consider that we have the results of a sPLS computation on liver.toxicity
## in a 'result' variable

## rad.in is the distance from the origin where we want to delimit a sphere
plot3dVar(result, rad.in = 1, Y.label = TRUE, cex = c(1, 0.8))

You should obtain something like this: