autoplot.TaskRegr: Plot for Regression Tasks

Description Usage Arguments Value Examples

View source: R/TaskRegr.R

Description

Generates plots for mlr3::TaskRegr, depending on argument type:

Usage

1
2
## S3 method for class 'TaskRegr'
autoplot(object, type = "target", ...)

Arguments

object

(mlr3::TaskRegr).

type

(character(1)):
Type of the plot. See description.

...

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

Value

ggplot2::ggplot() object.

Examples

1
2
3
4
5
6
7
8
9
library(mlr3)
library(mlr3viz)

task = tsk("mtcars")
task$select(c("am", "carb"))

head(fortify(task))
autoplot(task)
autoplot(task, type = "pairs")

mlr-org/mlr3viz documentation built on Oct. 13, 2021, 11:43 p.m.