howdy R friends, I've searched CRAN but to no avail... I'm trying to use mva's hclust and print out for say 10 clusters in batch. How do I do this? It's unclear if I can use cutree. thanks, John Strumila -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> On Thu, 20 Jul 2000 16:40:16 +1000, >>>>> Strumila, John (SJ) wrote:SJ> howdy R friends, SJ> I've searched CRAN but to no avail... I'm trying to use mva's hclust and SJ> print out for say 10 clusters in batch. How do I do this? It's unclear if SJ> I can use cutree. Hmm, I'm not sure I understand your question. What exactly do you mean by ``print out for say 10 clusters in batch''? I suspect what you want to do is not as simple as hc <- hclust(dist(mydata)) cutree(hc, k=10) but I cannot infer more from your mail ... .f -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
sorry if I was unclear. I want a plot method for say k=10. Maybe something like: hc <- hclust(dist(mydata)) plot(cutree(hc, k=10)) but the cutree object doesn't give the right class for the plot method that I want. thanks, John Strumila -----Original Message----- From: Friedrich Leisch [mailto:Friedrich.Leisch at ci.tuwien.ac.at] Sent: Thursday, 20 July 2000 16:55 To: Strumila, John Cc: r-help at stat.math.ethz.ch Subject: Re: [R] printing hclust with k clusters>>>>> On Thu, 20 Jul 2000 16:40:16 +1000, >>>>> Strumila, John (SJ) wrote:SJ> howdy R friends, SJ> I've searched CRAN but to no avail... I'm trying to use mva's hclust and SJ> print out for say 10 clusters in batch. How do I do this? It's unclear if SJ> I can use cutree. Hmm, I'm not sure I understand your question. What exactly do you mean by ``print out for say 10 clusters in batch''? I suspect what you want to do is not as simple as hc <- hclust(dist(mydata)) cutree(hc, k=10) but I cannot infer more from your mail ... .f -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
thanks for the effort Friedrich. John Strumila -----Original Message----- From: Friedrich Leisch [mailto:Friedrich.Leisch at ci.tuwien.ac.at] Sent: Thursday, 20 July 2000 17:27 To: Strumila, John Cc: r-help at stat.math.ethz.ch Subject: RE: [R] printing hclust with k clusters>>>>> On Thu, 20 Jul 2000 17:09:46 +1000, >>>>> Strumila, John (SJ) wrote:SJ> sorry if I was unclear. SJ> I want a plot method for say k=10. Maybe something like: SJ> hc <- hclust(dist(mydata)) SJ> plot(cutree(hc, k=10)) SJ> but the cutree object doesn't give the right class for the plot method that SJ> I want. Aah, you mean plotting the upper part of the dendrogram such that it has only 10 leaves, i.e., cutting it there? That's somewhere on my 2do list (but I want to implement general functions for handling trees, not only cluster dendrograms, hence it is not that trivial) ... .f -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._