Skip to contents

Generates plots for mlr3cluster::TaskClust, depending on argument type:

Usage

# S3 method for TaskClust
autoplot(object, type = "pairs", ...)

Arguments

object

(mlr3cluster::TaskClust).

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.

Theme

The theme_mlr3() and viridis color maps are applied by default to all autoplot() methods. To change this behavior set options(mlr3.theme = FALSE).

Examples

library(mlr3)
library(mlr3cluster)
library(mlr3viz)

task = mlr_tasks$get("usarrests")

head(fortify(task))
#>    Assault Murder Rape UrbanPop
#> 1:     236   13.2 21.2       58
#> 2:     263   10.0 44.5       48
#> 3:     294    8.1 31.0       80
#> 4:     190    8.8 19.5       50
#> 5:     276    9.0 40.6       91
#> 6:     204    7.9 38.7       78
autoplot(task)