Hi, I have the graph below: | 422 | 1 321 | 1 | 1 |32 1 |23 |_______________________ The numbers are points in coordinates (simplified graph). I need make a cluster analysis of this for identify groups and make a graph with this groups under circle. In R exist several packages for cluster analysis, but, which the package for this analysis and graphs? Thanks for all Inte mais Ronaldo -- The universe seems neither benign nor hostile, merely indifferent. -- Sagan -- | //|\\ [*****************************][*******************] || ( ? ? ) [Ronaldo Reis J?nior ][PentiumIII-600 ] | V [ESALQ/USP-Entomologia, CP-09 ][HD: 30 + 10 Gb ] || / l \ [13418-900 Piracicaba - SP ][RAM: 128 Mb ] | /(lin)\ [Fone: 19-429-4199 r.229 ][Video: SiS620-8Mb ] ||/(linux)\ [chrysopa at insecta.ufv.br ][Modem: Pctel-onboar] |/ (linux) \[ICQ#: 5692561 ][SO: CL 7.0 (2.2.19)] || ( x ) [*****************************][*******************] ||| _/ \_Powered by Conectiva Linux 7.0 D+:) | Lxuser#: 205366 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I know that %*% is used for matrix multiplication. However, if I multiply t(Y) %*% Y, where Y is an n by 1 vector, then the product is a scalar. However, if I multiply this scalar by a matrix, I get a non-conformability error. Suggestions? John. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>I know that %*% is used for matrix multiplication. However, if I >multiply t(Y) %*% Y, where Y is an n by 1 vector, then the product is >a scalar.No, it is a 1 x 1 matrix. c(t(Y) %*% Y) is a scalar and should work:> Y <- matrix(1:5,5,1) > t(Y) %*% Y[,1] [1,] 55> is.matrix(t(Y) %*% Y)[1] TRUE> is.matrix(c(t(Y) %*% Y))[1] FALSE Paul Gilbert -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "Ronaldo" == Ronaldo Reis <chrysopa at terra.com.br> writes:Ronaldo> Hi, Ronaldo> I have the graph below: Ronaldo> | 422 Ronaldo> | 1 321 Ronaldo> | 1 Ronaldo> | 1 Ronaldo> |32 1 Ronaldo> |23 Ronaldo> |_______________________ Ronaldo> The numbers are points in coordinates (simplified graph). I Ronaldo> need make a cluster analysis of this for identify groups and Ronaldo> make a graph with this groups under circle. In R exist Ronaldo> several packages for cluster analysis, but, which the package Ronaldo> for this analysis and graphs? As you note, there are many clustering algorithms available in R package(mva) has hclust, kmeans,.. package(cluster) has agnes,diana,clara,... [these two above should be available everywhere: mva is `standard'; cluster is `recommended] package(cclust) package(e1071) package(mclust) and even more. I don't understand ``make a graph with these(!) groups under circle''. Maybe you mean Kaufman&Rousseeuw's ``clusplot'' (which use ellipses). Try library(cluster) example(clusplot) {where when interactive, you must use your mouse to identify interesting points in the first plot} Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <>< -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._