autoplot.Filter | R Documentation |
Visualizations for mlr3filters::Filter.
The argument type
controls what kind of plot is drawn.
Possible choices are:
"barplot"
(default): Bar plot of filter scores.
## S3 method for class 'Filter'
autoplot(object, type = "boxplot", n = Inf, theme = theme_minimal(), ...)
object |
(mlr3filters::Filter). |
type |
(character(1)): |
n |
( |
theme |
( |
... |
(ignored). |
ggplot2::ggplot()
.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.