Generates plots for mlr3::TaskRegr.

# S3 method for TaskRegr
autoplot(object, type = "target", ...)

Arguments

object

(mlr3::TaskRegr).

type

(character(1)): Type of the plot. Available choices:

  • "target": bar plot of target variable (default).

  • "pairs": Passes data and additional arguments down to GGally::ggpairs. Color is set to target column.

...

(any): Additional argument, possibly passed down to the underlying plot functions.

Value

ggplot2::ggplot() object.

Examples

library(mlr3) task = mlr_tasks$get("mtcars") task$select(c("am", "carb")) head(fortify(task))
#> mpg am carb #> 1: 15.2 0 2 #> 2: 10.4 0 4 #> 3: 13.3 0 4 #> 4: 14.7 0 4 #> 5: 22.8 1 1 #> 6: 15.5 0 2
autoplot(task)
autoplot(task, type = "pairs")