Re: [R] making matrix monotonous

From: <vincent_at_7d4.com>
Date: Wed 07 Jun 2006 - 19:20:11 EST

Spencer Graves a écrit :

> I agree it would be great to sort the variables in a correlation
> matrix to make it easier to read and see patterns. I don't know any
> functions for doing that. If it were my problem, I might "order" the
> variables by their first principal component. There may also be some
> cluster analysis way to do that, but I don't know it well enough to say.
> Hope this helps.
> Spencer Graves

Thanks for your answer Spencer.

Here is a first result of a very simple and naive approach. http://7d4.com/r/

Of course, there is no assumption the sorting is "optimal", but on this little example it helps the matrix being more readable.

Vincent



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 07 19:47:16 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 08 Jun 2006 - 00:10:26 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.