Description Usage Arguments Details Value See Also Examples
A graph in 2D used to visualize the results of the EM clustering algorithm.
1 | cluster_plot(x, means, covariance, clusters)
|
x |
This is the data matrix. |
means |
This is a matrix with rows representing the means of the mixture model. |
covariance |
This is a list where each element represents the covariance of the components of the distribution. |
clusters |
This is a cluster label factor indicating each obaservation belonging to. |
This function shows the clustering results of the EM algorithm. Ellipses in the plot represent the estimated 95 probability density contours of each of the component. When the dimension is higher than 2, a pairs plot is produced. Presently, the function only works for dimensions being between 2 and 5.
The value returned is the model-based clustering plot(s).
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.