plo_coef.Rd
Plots the coefficients from a PLS regression.
plo_coef(object, y = NULL, ncomp = NULL, sort = FALSE,
col = "darkgreen", repel = FALSE,
max.pval = NULL, whiskers = FALSE, ci = 0.95)
an object of class mvr
from pls
package
the name of the response variable whose coefficients are plotted. If NULL
(default), the first response variable is used.
the number of components to use for computing coefficients
logical. If TRUE
, bars are sorted by decreasing coefficients. Default is FALSE
.
color of the bars
logical. If TRUE
, the names of the variables are repelled with geom_text_repel
. Default is FALSE
coefficients with jack-knife p-values higher than max.pval
have a more transparent color bar. If NULL
(default), all bars have the same opacity. If not NULL
, object
must be cross-validated with jackknife = TRUE
.
logical. If TRUE
, whiskers are added to represent the confidence interval of the coefficients. Default is FALSE
. If TRUE
, object
must be cross-validated with jackknife = TRUE
.
the confidence level of the confidence interval. Only used if whiskers
is TRUE
. Default is 0.95.
a ggplot2
object
Martens, H., Næs, T. (1989) Multivariate calibration. Chichester: Wiley.
Tenenhaus, M. (1998) La Regression PLS. Theorie et Pratique. Editions TECHNIP, Paris.