[R] histograms of profiles for each class
Friedrich.Leisch at ci.tuwien.ac.at
Thu Nov 5 09:11:15 CET 1998
>>>>> On Wed, 4 Nov 1998 19:56:35 +0000,
>>>>> root (r) wrote:
r> How i can make, with R program, histograms of profiles for
r> each class in cluster analysis.
I'm not sure if I understand correctly what you mean by `histograms of
profiles' but I guess you mean profiles of cluster centers ... sorry
if there's a misunderstanding.
If m is a matrix containing the cluster centers, e.g., as returned by
kmeans from data x:
k1 <- kmeans(x, centers=6)
m <- k1$centers
you can try
depending on if you want the bars to be stacked or not
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