[R] Spatial Correlation Map using R

Jim Lemon jim at bitwrit.com.au
Tue Dec 3 23:16:00 CET 2013


On 12/04/2013 08:59 AM, Jim Lemon wrote:
> On 12/04/2013 05:26 AM, Zilefac Elvis wrote:
>> Hi,
>> I have rainfall data from 100 locations, with coordinates for each
>> location available.
>> Now, I have a correlation matrix showing the correlation between
>> rainfall at a single location against all other locations and so on
>> for the 100 locations.
>> How can I visualize this correlation matrix using XY coordinate system
>> instead of the correlogram in R.
>
> Hi Zilefac,
> Have a look at the color2D.matplot function in plotrix. See the first
> example.
>
On reading your message more carefully, I think you want a choropleth 
map, so use color.scale to get the fill colors and the maps package to 
plot them.

Jim



More information about the R-help mailing list