Learn R Programming

clues (version 0.3.2)

plotAvgCurves: Plot Average Trajectories for Each Cluster

Description

Plot average trajectories for each cluster.

Usage

plotAvgCurves(y, mem, myxlab = "variable", myylab = "average observation")

Arguments

y
data matrix which is a R matrix object (for dimension > 1) or vector object (for dimension=1) with rows being observations and columns being 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.
myxlab
a title for the x axis.
myylab
a title for the y-axis.

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
data(Curve)
  
  # data matrix
  curve <- Curve$curve
  
  res <- clues(curve, disMethod = "1-corr")
  plotAvgCurves(curve, res$mem)

Run the code above in your browser using DataLab