[R-sig-Geo] create inset map

2011-10-15 Thread dieter Vanderelst
Hello List, I have a map of Africa I plot using spplot(). In addition, I have a second map of Sao Tome (a small island). I want to add this second map to the first as an inset because it would otherwise not be visible at the same scale of the continent. This is what I currently do: I save bot

Re: [R-sig-Geo] create inset map

2011-10-21 Thread dieter Vanderelst
ing >> yourself, which might be fine if you need to do it just once. >> >> >> On 10/15/2011 05:01 PM, dieter Vanderelst wrote: >> >>> Hello List, >>> >>> I have a map of Africa I plot using spplot(). In addition, I have a >>> second m

[R-sig-Geo] Finding out in which polygon a point lies

2011-12-20 Thread Dieter Vanderelst
Dear List, I've read in a shapefile using the readShapePoly {maptools} function. This shapefile represents Angola and has different polygons for the different regions of the country. I also have a set of coordinates (lat/long). Now want to do two things: 1 - I want to plot the points on the map.

[R-sig-Geo] Determining in which polygon points lie

2013-06-14 Thread Dieter Vanderelst
Dear List, I'm reading in a shapefile of a country with different subregions in the shapefile (the shapefile was downloaded from the GADM database of Global Administrative Areas). I also have a number of points. Therefore, my code looks like this (using the maptools package): country<-readSh