Create scatterplot of data points with clusters indicated by color. Returns ggplot object.
kmplot(data)
data
Data frame. Attributes as columns and data points as rows. Data with cluster labels
data <- tibble(x1=c(1,2,10), x2=c(1,3,10), cluster=c(1,1,2)) kmplot(data)
This package implements the classical unsupervised clustering method, k-means, with options for choosing the initial centroids (e.g. random and kmeans++). Users will be able to find clusters in their data, label new data, and observe the clustering results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.