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
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
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
> >
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",
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)