plotAvgCurves {clues} | R Documentation |
Plot average trajectories for each cluster.
plotAvgCurves(y, mem, myxlab = "variable", myylab = "average observation")
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, ..., g, where g is the estimated number of clusters. |
myxlab |
a title for the x axis. |
myylab |
a title for the y-axis. |
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.
data(Curve) # data matrix curve <- Curve$curve res <- clues(curve, disMethod = "1-corr") plotAvgCurves(curve, res$mem)