autoplot.TaskClust {mlr3viz} | R Documentation |
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 dataGGally::ggpairs()
.
Usage
## S3 method for class 'TaskClust'
autoplot(object, type = "pairs", theme = theme_minimal(), ...)
Arguments
object |
|
type |
(character(1)): |
theme |
( |
... |
(ignored). |
Value
Examples
if (requireNamespace("mlr3")) {
library(mlr3)
library(mlr3cluster)
library(mlr3viz)
task = mlr_tasks$get("usarrests")
head(fortify(task))
autoplot(task)
}
[Package mlr3viz version 0.9.0 Index]