Learn R Programming

mlr3viz (version 0.11.0)

autoplot.TaskClust: Plots for Clustering Tasks

Description

Visualizations for mlr3cluster::TaskClust. The argument type controls what kind of plot is drawn. Possible choices are:

  • "pairs" (default): Passes data GGally::ggpairs().

Usage

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

Value

ggplot2::ggplot().

Arguments

object

(mlr3cluster::TaskClust).

type

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

theme

(ggplot2::theme())
The ggplot2::theme_minimal() is applied by default to all plots.

...

(ignored).

Examples

Run this code
if (mlr3misc::require_namespaces("mlr3cluster", quietly = TRUE)) {
library(mlr3cluster)
task = tsk("usarrests")

head(fortify(task))
autoplot(task)
}

Run the code above in your browser using DataLab