powered by
Generates plots for mlr3filters::Filter, depending on argument type:
type
"barplot" (default): Bar plot of filter scores.
"barplot"
# S3 method for Filter autoplot(object, type = "boxplot", n = Inf, ...)
(mlr3filters::Filter).
(character(1)): Type of the plot. See description.
(integer(1)) Only include the first n features with highest importance. Defaults to all features.
integer(1)
n
(any): Additional argument, passed down to the respective geom.
any
geom
ggplot2::ggplot() object.
ggplot2::ggplot()
# NOT RUN { library(mlr3) library(mlr3viz) library(mlr3filters) task = tsk("mtcars") f = flt("correlation") f$calculate(task) head(fortify(f)) autoplot(f, n = 5) # }
Run the code above in your browser using DataLab