Mapping Israel in R
I think I spent two or three days trying to map in R about 6 months ago, but I couldn’t find the shape files for Israel, even after visiting the University GIS lab.
Mainstreamish (/ComputerWorld/) news article linked today on g+
Found the shape files today. (Click Israel and Administrative areas)
Direct link So that can be added to your R script with curl or wget.
My script begins after downloading the shape file by hand.
First I went to maps.google.com and found Israel to get the latitude and longitude. I was modifying Ralph’s tutorial that showed the London Olympic Stadium in R. So, I copied the ggmap::getmap() syntax from there and changed the latitude an longitude.
The next step is to read in the shape file, and set some colors for the shapes. Here I follow another tutorial.
Finally, I plot the shapes on top of the underlying satellite map.
It still remains to match the areas to some useful data (birthrate, income, z-ness, rainfall . . . ) and produce a cloropleth. All code for this post is available as a gist.