[R] k-means cluster and plot labels
Sarah Goslee
sarah.goslee at gmail.com
Tue Dec 13 23:39:09 CET 2011
Try the pch() argument to plot(), or perhaps using text(), depending
on what exactly you're trying to achieve.
Sarah
On Tue, Dec 13, 2011 at 4:03 PM, Meesters, Christian <meesters at aesku.com> wrote:
> Hi,
>
> For my data, I followed the example of http://en.wikibooks.org/wiki/Data_Mining_Algorithms_In_R/Clustering/K-Means#Execution and got some very nice results. Despite the fact, that I want to achieve a bit more by clustering my data (stratification beyond case-control), the actual data-frame contains a column labeled "C" which holds a case-control indicator (here either "Z" for the trait and "C" for control or alternatively "1" vs. "0"). Is there a way to display this status character in the plot?
>
> Any pointer is appreciated.
>
> TIA
> Christian
--
Sarah Goslee
http://www.functionaldiversity.org
More information about the R-help
mailing list