Description

Create scatterplot of data points with clusters indicated by color. Returns ggplot object.

Usage

kmplot(data)

Argument

data Data frame. Attributes as columns and data points as rows. Data with cluster labels

Example

data <- tibble(x1=c(1,2,10), x2=c(1,3,10), cluster=c(1,1,2))
kmplot(data)

Details

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.



UBC-MDS/ssgkmeansr documentation built on May 25, 2019, 1:36 p.m.