MBplotVars | R Documentation |
Plots variables related information of MBPCA
, ComDim
, MBPLS
or MBWCov
with several options of customization.
MBplotVars(
res,
axes = c(1, 2),
which = ifelse(res$call$scale, "correlation", "loading"),
block = 0,
select = 0,
title = NULL,
size = 2.25
)
res |
An object resulting from |
axes |
Which dimensions should be plotted? |
which |
Either "correlation" or "loading". |
block |
Selection of variables by blocks. A number or integer, possibly a vector, corresponding to the index of the blocks from which the variables should be plotted. For |
select |
Selection of variables by index. A number or integer, possibly a vector, corresponding to the index of the variables that should be plotted. For |
title |
An optional title to be added to the plot. |
size |
The overall size of labels, points, etc. |
The required plot.
plot.MBPCA
plot.ComDim
plot.MBPLS
plot.MBWCov
# Unsupervised example
data(ham)
X=ham$X
block=ham$block
res.mbpca <- MBPCA(X,block, name.block=names(block))
MBplotVars(res.mbpca)
# Supervised example
data(ham)
X=ham$X
block=ham$block
Y=ham$Y
res.mbpls <- MBPLS(X, Y, block, name.block=names(block))
MBplotVars(res.mbpls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.