powered by
Plot enspls.fs object
# S3 method for enspls.fs plot(x, nvar = NULL, type = c("dotplot", "boxplot"), limits = c(0, 1), main = NULL, ...)
An object of class enspls.fs.
enspls.fs
Number of top variables to show. Ignored if sort = FALSE.
sort = FALSE
Plot type, can be "dotplot" or "boxplot".
"dotplot"
"boxplot"
Vector of length 2. Set boxplot limits (in quantile) to remove the extreme outlier coefficients.
Plot title, not used currently.
Additional graphical parameters, not used currently.
Nan Xiao <https://nanx.me>
See enspls.fs for measuring feature importance with ensemble sparse partial least squares regressions.
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)
Run the code above in your browser using DataLab