Hi, I am clustering data based on three numeric variables. I have a fourth variable that is categorical (site) which I would like to use to label the leaves of my dendrogram, so I can see how the different sites are grouped throughout the tree, but I do NOT want to use this variable in the cluster analysis itself. Is there any way I can do this? Thanks, Samantha -- View this message in context: http://n4.nabble.com/cluster-analysis-labels-for-dendrogram-tp1588347p1588347.html Sent from the R help mailing list archive at Nabble.com.
Hi Samantha, You can check out the graph and source code on this page: http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=79 best, Xian -- View this message in context: http://n4.nabble.com/cluster-analysis-labels-for-dendrogram-tp1588347p1588790.html Sent from the R help mailing list archive at Nabble.com.
Hi Samantha, Did you check out the help for plclust? There's a labels argument that is used to label the leaves of your dendrogram. By default, the rownames of your dataframe are used. Sarah On Wed, Mar 10, 2010 at 9:01 PM, Samantha <samantha.franks at gmail.com> wrote:> > Hi, > > I am clustering data based on three numeric variables. ?I have a fourth > variable that is categorical (site) which I would like to use to label the > leaves of my dendrogram, so I can see how the different sites are grouped > throughout the tree, but I do NOT want to use this variable in the cluster > analysis itself. ?Is there any way I can do this? > > Thanks, > Samantha > ---- Sarah Goslee http://www.functionaldiversity.org