plot.enspls.fs: Plot enspls.fs object

Description Usage Arguments Author(s) See Also Examples

Description

Plot enspls.fs object

Usage

1
2
3
## S3 method for class 'enspls.fs'
plot(x, nvar = NULL, type = c("dotplot",
  "boxplot"), limits = c(0, 1), main = NULL, ...)

Arguments

x

An object of class enspls.fs.

nvar

Number of top variables to show. Ignored if sort = FALSE.

type

Plot type, can be "dotplot" or "boxplot".

limits

Vector of length 2. Set boxplot limits (in quantile) to remove the extreme outlier coefficients.

main

Plot title, not used currently.

...

Additional graphical parameters, not used currently.

Author(s)

Nan Xiao <https://nanx.me>

See Also

See enspls.fs for measuring feature importance with ensemble sparse partial least squares regressions.

Examples

1
2
3
4
5
6
7
8
data("logd1k")
x <- logd1k$x
y <- logd1k$y

set.seed(42)
fs <- enspls.fs(x, y, reptimes = 5, maxcomp = 2)
plot(fs, nvar = 10)
plot(fs, type = "boxplot", limits = c(0.05, 0.95), nvar = 10)

enpls documentation built on May 18, 2019, 9:02 a.m.