Re: [R-sig-Geo] proj4string in rworldmap

2013-11-04 Thread Andy South
Rob Robinson bto.org> writes: > > Prompted by a recent post, I have discovered rworldmap, which look set to > make my life much easier, apart from a wrinkle I can't get my head round. > > I am writing a function to plot a map clipped to a given extent, and I'd > like to be able to do so at dif

Re: [R-sig-Geo] Projected SpatialLinesDataFrame has a segment spanning the globe

2013-11-01 Thread Andy South
rr2box42 gmail.com> writes: > > Thanks much to you both--Edzer's suggestion does work to remove the offending > vertex. Based on the input I managed an alternative, which is to correct the > original vertex to not pass 180 degrees longitude (it's currently at > 180.004, which is apparently

Re: [R-sig-Geo] Projected SpatialLinesDataFrame has a segment spanning the globe

2013-11-01 Thread Andy South
Ry Guy gmail.com> writes: > Hi All, > > I'm trying to use the 'coastsCoarse' dataset from library 'rworldmap' as a base map for plotting a global > dataset. It works fine when I use unprojected data. However, if I project the data and base map, > coastsCoarse ends up with one horizontal line s

Re: [R-sig-Geo] Global mapping of multiple categories by colour

2013-08-30 Thread Andy South
> > Thanks Roger for your comprehensive answer, I've been offline for a couple of days. Sarah, I think you may be very close to your first objective. Try removing the quotes around data3, (because data3 is an object not a string) : malMap <- joinCountryData2Map(dF = data3, joinCode = "ISO3",

Re: [R-sig-Geo] Strategies for modifying country-specific grids from a global gridded dataset in simple matrix form?

2010-12-13 Thread andy south
Hi Jooil, The code below should help with your query about identifying the countrys that grid cells fall in using rworldmap. All the best, Andy #testing identifying the country of grid cells of any resolution (centroids) #plus aggregating a grid of any dimension to countries library(rworldmap)