Plotting function for Variable Importance in the Projection

Share:

Description

This function generates a plot an object of class vip.

Usage

1
2
## S3 method for class 'vip'
plot(x, ncomp = 1, cut.off = 1, ...)

Arguments

x

vip object

ncomp

the number of components to include the graph output.

cut.off

a cut.off value for the VIP (default = 1).

...

additional arguments. Currently ignored.

Details

plot.vip is used to generates the graph of the variable in the projection from vip objects.

Value

The output of plot.vip is a graph of the variable importance in the projection.

Author(s)

Nelson Lee Afanador (nelson.afanador@mvdalab.com)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(Penta)
## Number of bootstraps set to 500 to demonstrate flexibility
## Use a minimum of 1000 (default) for results that support bootstraping
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], 
               ncomp = 2, validation = "oob", boots = 500)
VIP1 <- vip(mod1, conf = .95)
plot(VIP1)

mod2 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], 
        ncomp = 2, method = "bidiagpls", validation = "loo")
VIP1b <- vip(mod2, conf = .95)
plot(VIP1b)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.