[R] graphical distance matrix

Jim Lemon
Thu, 10 Jan 2013 02:51:53 -0000

On 01/10/2013 07:50 AM, eliza botto wrote:
>
> Dear R-family,
> I made a distance matrix of about 2000 stations. its extremely hard to
visualize the details of that matrix. I heard that there is a way in R to
represent the details of distance matrix graphically. more precisely, different
sections of our distance matrix can be presented in different colors. low values
be presented in light colors and high values in dark. is there really a way of
doing it??
> thanks in advance
> regards
> elisa

Hi elisa,
In the example for the function "color.scale.lines" (plotrix) you will
find one method of coloring something (lines in this case) depending
upon the distance from something else (the starting point). With
judicious modification, I think it might do what you want.

Jim