Learn R Programming

multigroup (version 0.4.5)

loadingsplotXY: loadings plot of X and Y

Description

plots of variables (loadings)

Usage

loadingsplotXY(
  X,
  Y,
  axes = c(1, 2),
  INERTIE = NULL,
  cex = NULL,
  font.lab = NULL
)

Arguments

X

common loadingsassociated with X

Y

common loadingsassociated with Y

axes

a vector of two selected components

INERTIE

if there is information about inertia

cex

character expansion for text by default .85

font.lab

type of font by default 3

Value

loadings plot

Examples

Run this code
# NOT RUN {
data(oliveoil)
DataX = oliveoil[,2:6]
DataY = oliveoil[,7:12]
Group = as.factor(oliveoil[,1])
res.mgPLS = mgPLS (DataX, DataY, Group)
X=res.mgPLS$loadings.commo$X; Y=res.mgPLS$loadings.commo$Y
loadingsplotXY(X, Y, axes=c(1,2), INERTIE=res.mgPLS$noncumper.inertiglobal)
# }

Run the code above in your browser using DataLab