plot_kmeans: Function to plot the cluster assignment from the k-means...

Description Usage Arguments Value

Description

Function to plot the cluster assignment from the k-means algorithm.

Usage

1
plot_kmeans(sim_kmeans, sampleMat)

Arguments

sim_kmeans

Output from the k-means function

sampleMat

An (n x d+1) matrix with the observed data and true cluster assignments

Value

A plot containing the observed data, colored by their clusters according to k-means. Estimated mean of clusters also plotted.


nwakim/nwREM documentation built on May 22, 2019, 5:34 p.m.