autoplot.TaskClust | R Documentation |
Visualizations for mlr3cluster::TaskClust.
The argument type
controls what kind of plot is drawn.
Possible choices are:
"pairs"
(default): Passes data GGally::ggpairs()
.
## S3 method for class 'TaskClust'
autoplot(object, type = "pairs", theme = theme_minimal(), ...)
object |
(mlr3cluster::TaskClust). |
type |
(character(1)): |
theme |
( |
... |
(ignored). |
ggplot2::ggplot()
.
if (requireNamespace("mlr3")) {
library(mlr3)
library(mlr3cluster)
library(mlr3viz)
task = mlr_tasks$get("usarrests")
head(fortify(task))
autoplot(task)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.