[R] diffusing GIS data in maps

Vladimir Eremeev wl2776 at gmail.com
Tue Aug 14 12:02:37 CEST 2007


Hi. 
You will find some useful information in the 
  http://r-spatial.sourceforge.net/ 

Particularly, Fig. 07 in the Graph gallery.

Package spmaps can be used to extract desired boundaries from the mapdata
and convert them to the format suitable for sp and others.


Lawrence D. Brenninkmeyer wrote:
> 
> Hi-
> 
> I am trying to find a way to diffuse GIS data on a European map. I have a
> dataset consisting of particular locations scattered across Europe,
> along with magnitude and value information. I can plot these as discrete
> points with something like the following:
> 
> "geocode" is a dataframe with four columns: LAT; LONG; MAGNITUDE;VALUE.
> 
> library(maps)
> library(mapdata)
> map("worldHires", regions=c("Germany", "Belgium", "Netherlands"))
> points(geocode$LONG, geocode$LAT, cex=geocode$MAGNITUDE / 2500,
> col=rainbow(length(geocode$VALUE), start=0, end=.4)[rank(geocode$VALUE)])
> 
> This gives me a map of Europe with my datapoints highlighted in two ways:
> magnitude is represented by the size of the point, and value is
> represented by the color.
> 
> However, what I would really like is for there to be some sort of
> diffusion, such that instead of discrete points, the European map is
> covered in color so I can see more clearly whether there are regional
> patterns (something that will presumably look like this contour chart:
> <http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=20>  only
> on the European map).
> 
> 

-- 
View this message in context: http://www.nabble.com/diffusing-GIS-data-in-maps-tf4265350.html#a12141809
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list