loadingsplotXY: loadings plot of X and Y

Description Usage Arguments Value Examples

View source: R/loadingsplotXY.R

Description

plots of variables (loadings)

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
7
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)

multigroup documentation built on March 26, 2020, 5:50 p.m.