[R] printing hclust with k clusters
Friedrich.Leisch at ci.tuwien.ac.at
Thu Jul 20 09:26:37 CEST 2000
>>>>> 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) ...
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
More information about the R-help