plo_var.Rd
Plots the loadings of the variables of a PLS regression.
plo_var(object, comps = 1:2, which = "both", col = NULL,
size = 3.88, Yline = TRUE, col.Yline = "firebrick3")
an object of class mvr
from pls
package
the components to use. Default is c(1,2)
.
character string. If "both"
(default), X and Y variables are plotted. If "X"
, only X variables are plotted. If "Y"
, only Y variables are plotted.
colors for the names of the variables. Only one value should be provided if which
is "X" or "Y", a vector of two if which
is "both". If NULL
(default), colors are set automatically.
numerical value. The size of the names of the variables.
logical. If TRUE
(default), a line is drawn through the origin and the coordinates of the response variable, and a second line orthogonal to the first one. This is aimed at facilitating the interpretation.
the color of the lines drawn if Yline
is TRUE
. Default is "firebrick3".
a ggplot2
object
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).
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.
Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.