[R] making matrix monotonous

vincent at 7d4.com vincent at 7d4.com
Wed Jun 7 11:20:11 CEST 2006


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



More information about the R-help mailing list