plo_coef {morepls} | R Documentation |
Plot of coefficients
Description
Plots the coefficients from a PLS regression.
Usage
plo_coef(object, y = NULL, ncomp = NULL, sort = FALSE,
col = "darkgreen", repel = FALSE,
max.pval = NULL, whiskers = FALSE, ci = 0.95)
Arguments
object |
an object of class |
y |
the name of the response variable whose coefficients are plotted. If |
ncomp |
the number of components to use for computing coefficients |
sort |
logical. If |
col |
color of the bars |
repel |
logical. If |
max.pval |
coefficients with jack-knife p-values higher than |
whiskers |
logical. If |
ci |
the confidence level of the confidence interval. Only used if |
Value
a ggplot2
object
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",
jackknife = TRUE)
plo_coef(pls)
plo_coef(pls, max.pval = 0.05)
plo_coef(pls, whiskers = TRUE)