plot.enpls.fs | R Documentation |
Plot enpls.fs object
## S3 method for class 'enpls.fs'
plot(
x,
nvar = NULL,
type = c("dotplot", "boxplot"),
limits = c(0, 1),
main = NULL,
...
)
x |
An object of class |
nvar |
Number of top variables to show. Ignored if |
type |
Plot type. |
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. |
Nan Xiao <https://nanx.me>
See enpls.fs
for measuring feature importance with
ensemble partial least squares regressions.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.