Plot enpls.fs object

Share:

Description

Plot enpls.fs object

Usage

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

Arguments

x

An object of class enpls.fs.

nvar

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

type

Plot type. "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 <http://nanx.me>

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("alkanes")
x = alkanes$x
y = alkanes$y

set.seed(42)
fs = enpls.fs(x, y, reptimes = 50)
plot(fs)
plot(fs, nvar = 10)
plot(fs, type = "boxplot")
plot(fs, type = "boxplot", limits = c(0.05, 0.95))

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