if (requireNamespace("mlr3")) {
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