plo_var {morepls} | R Documentation |
Plot of loadings
Description
Plots the loadings of the variables of a PLS regression.
Usage
plo_var(object, comps = 1:2, which = "both", col = NULL,
size = 3.88, Yline = TRUE, col.Yline = "firebrick3")
Arguments
object |
an object of class |
comps |
the components to use. Default is |
which |
character string. If |
col |
colors for the names of the variables. Only one value should be provided if |
size |
numerical value. The size of the names of the variables. |
Yline |
logical. If |
col.Yline |
the color of the lines drawn if |
Value
a ggplot2
object
Note
This is what Tenenhaus calls the multivariate interpretation of the PLS components, as opposed to the univariate interpretation provided by the correlations (see plo_cor
). This superposes Y loadings (vectors from the C matrix) and projections, i.e. modified weights (vectors of the W* matrix).
Author(s)
Nicolas Robette
References
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.
Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.
See Also
Examples
library(pls)
data(yarn)
pls <- mvr(density ~ NIR,
ncomp = 5,
data = yarn,
validation = "CV",
method = "oscorespls")
plo_var(pls)