[R] identifying points on a clusplot

From: Rajarshi Guha <rxg218_at_psu.edu>
Date: Sat 28 Jan 2006 - 02:30:02 EST


Hi, I would like to identify a few points on a clusplot generated from a fanny clustering.

The manpage for clusplot indicates that setting labels=5 allows me to identify the points. However I only need to identify a subset.

I tried setting the 'Labels' attribute of my data matrix (23 rows) as:

> rownames(desc) <- NULL
> attr(desc, 'Labels') <- l # l is a vector with the labels
> attr(desc, 'Labels')

 [1] "27" "" "" "" "" "" "43" "" "" "" "" "48" [13] "" "" "" "" "" "" "" "" "169" "172" "177"
> clus <- fanny(desc, k=2)
> clusplot(clus, color=TRUE, lines=0, labels=5)

However, when I select points it use 1,2,3 ... 23 rather than the values from the 'Label's attribute. Furthermore it forces me to select all the points on the plot.

Is there a way to identify a subset of points on a clusplot, rather than all the points?

Thanks,



Rajarshi Guha <rxg218_at_psu.edu> <http://jijo.cjb.net> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE

A mathematician is a device for turning coffee into theorems. -- P. Erdos

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jan 28 02:55:30 2006

This archive was generated by hypermail 2.1.8 : Sat 28 Jan 2006 - 08:46:24 EST