| autoplot.TaskClassif | R Documentation |
Visualizations for mlr3::TaskClassif.
The argument type controls what kind of plot is drawn.
Possible choices are:
"target" (default): Bar plot of the target variable (default).
"duo": Passes data to GGally::ggduo().
columnsX is the target and columnsY are the features.
"pairs": Passes data to GGally::ggpairs().
Color is set to target column.
## S3 method for class 'TaskClassif'
autoplot(object, type = "target", theme = theme_minimal(), ...)
object |
(mlr3::TaskClassif). |
type |
(character(1)): |
theme |
( |
... |
(ignored). |
ggplot2::ggplot().
if (requireNamespace("mlr3")) {
library(mlr3)
library(mlr3viz)
task = tsk("iris")
head(fortify(task))
autoplot(task)
autoplot(task$clone()$select(c("Sepal.Length", "Sepal.Width")),
type = "pairs")
autoplot(task, type = "duo")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.