plo_vip {morepls}R Documentation

Plot of VIPs

Description

Plots the Variable Importance in Projections (VIP) indexes of a PLS regression.

Usage

plo_vip(object, ncomp = NULL, sort = FALSE,
col = "steelblue4", repel = FALSE)

Arguments

object

an object of class mvr from pls package

ncomp

the number of components to use for computing VIPs

sort

logical. If TRUE, bars are sorted by decreasing VIPs. Default is FALSE.

col

color of the bars

repel

logical. If TRUE, the names of the variables are repelled with geom_text_repel. Default is FALSE

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

VIP

Examples

library(pls)
data(yarn)
pls <- mvr(density ~ NIR,
           ncomp = 5,
           data = yarn,
           validation = "CV",
           method = "oscorespls")
plo_vip(pls)

[Package morepls version 0.1 Index]