plo_var | R Documentation |
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")
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 |
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).
Nicolas Robette
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.
Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.
plo_cor
library(pls)
data(yarn)
pls <- mvr(density ~ NIR,
ncomp = 5,
data = yarn,
validation = "CV",
method = "oscorespls")
plo_var(pls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.