Visualizations for mlr3cluster::TaskClust.
The argument type controls what kind of plot is drawn.
Possible choices are:
"pairs"(default): Passes dataGGally::ggpairs().
Usage
# S3 method for class 'TaskClust'
autoplot(object, type = "pairs", theme = theme_minimal(), ...)Arguments
- object
- type
(character(1)):
Type of the plot. See description.- theme
(
ggplot2::theme())
Theggplot2::theme_minimal()is applied by default to all plots.- ...
(ignored).
Examples
if (mlr3misc::require_namespaces("mlr3cluster", quietly = TRUE)) {
library(mlr3cluster)
task = tsk("usarrests")
head(fortify(task))
autoplot(task)
}
