View source: R/fortify_cluster.R
fortify.kmeans | R Documentation |
data.frame
Convert cluster instances to data.frame
## S3 method for class 'kmeans'
fortify(model, data = NULL, ...)
model |
Clustered instance |
data |
original dataset, if needed |
... |
other arguments passed to methods |
data.frame
## Not run:
fortify(stats::kmeans(iris[-5], 3))
fortify(stats::kmeans(iris[-5], 3), data = iris)
fortify(cluster::clara(iris[-5], 3))
fortify(cluster::fanny(iris[-5], 3))
fortify(cluster::pam(iris[-5], 3), data = iris)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.