autoplot.TaskClassif: Plot for Classification Tasks

Description Usage Arguments Value Examples

View source: R/TaskClassif.R

Description

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

Usage

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

Arguments

object

(mlr3::TaskClassif).

type

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

...

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

Value

ggplot2::ggplot() object.

Examples

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

task = tsk("iris")

head(fortify(task))
autoplot(task)
autoplot(task$clone()$select(c("Sepal.Length", "Sepal.Width")),
  type = "pairs")
autoplot(task, type = "duo")

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