Description Usage Arguments Value Examples
View source: R/fortify_cluster.R
Autoplot cluster instances
1 2 |
object |
Clustered instance |
data |
Original data used for clustering. Mandatory for |
colour |
line colour for points |
... |
other arguments passed to |
ggplot
1 2 3 4 5 6 | autoplot(stats::kmeans(iris[-5], 3), data = iris)
autoplot(cluster::clara(iris[-5], 3), label = TRUE)
autoplot(cluster::fanny(iris[-5], 3))
autoplot(cluster::fanny(iris[-5], 3), frame = TRUE)
autoplot(cluster::pam(iris[-5], 3), data = iris, colour = 'Species')
autoplot(cluster::pam(iris[-5], 3), data = iris, frame = TRUE, frame.type = 't')
|
Loading required package: ggplot2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.