Re: [R] kmeans and plot labels

2011-12-16 Thread Meesters, Christian
...@gmail.com] Sent: Friday, December 16, 2011 3:29 PM To: Meesters, Christian Cc: r-help@r-project.org Subject: Re: [R] kmeans and plot labels Hi, You include no context, and I only vaguely remember your original question. You also don't include a reproducible example. But perhaps this helps? te

Re: [R] kmeans and plot labels

2011-12-16 Thread Sarah Goslee
Hi, You include no context, and I only vaguely remember your original question. You also don't include a reproducible example. But perhaps this helps? testmat <- data.frame(x=c(1,1,2,3), y=c(2,1,3,2), names=letters[1:4], stringsAsFactors=FALSE) with(testmat, plot(x, y, pch=names)) or with(test

Re: [R] kmeans and plot labels

2011-12-16 Thread Meesters, Christian
Hi, Thanks Sarah. Unfortunately I did not get a step further. My question, perhaps a bit clearer, is how to display the case control status (or any other arbitrary point label) after clustering in a plot: With a bit of pseudo code, where dataset is a data.frame, parameters are those column nam