plo_ctr.Rd
Plots the weights of X variables from a PLS regression.
plo_ctr(object, comp = 1, sort = FALSE, col = "tomato4", repel = FALSE)
an object of class mvr
from pls
package
the component to use. Default is 1.
logical. If TRUE
, bars are sorted by decreasing VIPs. Default is FALSE
.
color of the bars
logical. If TRUE
, the names of the variables are repelled with geom_text_repel
. Default is FALSE
a ggplot2
object
According to Tenenhaus, the contribution of a variable to the construction of a component is measured by the squared loading weight. For a given component, the sum af the squared loading weights is equal to 1. This plot represents the loading weights, which keeps the information about their sign. Dashed lines are added at +/- sqrt(1/p), with p the number of X variables, which corresponds to the average contribution to the construction of the component.
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.
Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.