autoplot.TaskRegr | R Documentation |
Generates plots for mlr3::TaskRegr, depending on argument type
:
"target"
: Box plot of target variable (default).
"pairs"
: Passes data and additional arguments down to
GGally::ggpairs()
. Color is set to target column.
## S3 method for class 'TaskRegr' autoplot(object, type = "target", ...)
object |
(mlr3::TaskRegr). |
type |
(character(1)): |
... |
( |
ggplot2::ggplot()
object.
The theme_mlr3()
and viridis color maps are applied by default to all
autoplot()
methods. To change this behavior set
options(mlr3.theme = FALSE)
.
library(mlr3) library(mlr3viz) task = tsk("mtcars") task$select(c("am", "carb")) head(fortify(task)) autoplot(task) autoplot(task, type = "pairs")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.