Learn R Programming

clues (version 0.3.2)

plotClusters: Plot Scatter Plot of Clusters in a Specified Two Dimensional Space

Description

Plot scatter plot of clusters in a specified two dimensional space.

Usage

plotClusters(y, mem, plot.dim = c(1, 2))

Arguments

y
data matrix with rows being a collection of observations and columns being a list of variables.
mem
vector of the cluster membership of data points. The cluster member ship takes values: $1$, $2$, $\ldots$, $g$, where $g$ is the estimated number of clusters.
plot.dim
specifies the two dimensions to be plot.

References

Wang, S., Qiu, W., and Zamar, R. H. (2007). CLUES: A non-parametric clustering method based on local shrinking. Computational Statistics & Data Analysis, Vol. 52, issue 1, pages 286-298.

Examples

Run this code
# ruspini data
  data(Ruspini)
  ruspini <- Ruspini$ruspini
  ruspini.mem <- Ruspini$ruspini.mem
  
  plotClusters(ruspini, ruspini.mem, plot.dim = c(1, 2))

Run the code above in your browser using DataLab