powered by
Visualizations for mlr3::TaskRegr. The argument type controls what kind of plot is drawn. Possible choices are:
type
"target" (default): Box plot of the target variable.
"target"
"pairs": Passes data to GGally::ggpairs(). Color is set to target column.
"pairs"
GGally::ggpairs()
# S3 method for TaskRegr autoplot(object, type = "target", theme = theme_minimal(), ...)
ggplot2::ggplot().
ggplot2::ggplot()
(mlr3::TaskRegr).
(character(1)): Type of the plot. See description.
(ggplot2::theme()) The ggplot2::theme_minimal() is applied by default to all plots.
ggplot2::theme()
ggplot2::theme_minimal()
(ignored).
if (requireNamespace("mlr3")) { library(mlr3) library(mlr3viz) task = tsk("mtcars") task$select(c("am", "carb")) head(fortify(task)) autoplot(task) autoplot(task, type = "pairs") }
Run the code above in your browser using DataLab