Generates plots for mlr3filters::Filter.

# S3 method for Filter
autoplot(object, n = Inf, ...)

Arguments

object

(mlr3filters::Filter).

n

(integer(1))
Only include the first n features with highest importance. Defaults to all features.

...

(any): Additional argument, possibly passed down to the underlying plot functions.

Value

ggplot2::ggplot() object.

Examples

library(mlr3) library(mlr3filters) task = mlr_tasks$get("mtcars") f = mlr_filters$get("correlation") f$calculate(task) head(fortify(f))
#> feature score #> 1: wt 0.8676594 #> 2: cyl 0.8521620 #> 3: disp 0.8475514 #> 4: hp 0.7761684 #> 5: drat 0.6811719 #> 6: vs 0.6640389
autoplot(f, n = 5)