[R] graphical distance matrix

Jim Lemon jim at bitwrit.com.au
Thu Jan 10 03:51:53 CET 2013


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




More information about the R-help mailing list