autoplot.TaskRegr {mlr3viz} | R Documentation |
Plots for Regression Tasks
Description
Visualizations for mlr3::TaskRegr.
The argument type
controls what kind of plot is drawn.
Possible choices are:
-
"target"
(default): Box plot of the target variable. -
"pairs"
: Passes data toGGally::ggpairs()
. Color is set to target column.
Usage
## S3 method for class 'TaskRegr'
autoplot(object, type = "target", theme = theme_minimal(), ...)
Arguments
object |
|
type |
(character(1)): |
theme |
( |
... |
(ignored). |
Value
Examples
if (requireNamespace("mlr3")) {
library(mlr3)
library(mlr3viz)
task = tsk("mtcars")
task$select(c("am", "carb"))
head(fortify(task))
autoplot(task)
autoplot(task, type = "pairs")
}
[Package mlr3viz version 0.9.0 Index]