[R] drawing filled countries according to data using map('world')?
Ray Brownrigg
ray at mcs.vuw.ac.nz
Sun Mar 7 23:46:51 CET 2004
> My question then is, how to compute a similar procedure using the 'world'
> database. Specifically, how can I access the country names in the 'world'
> database to accomplish the translation to the country names in my dataset?
> Is there any way to unpack the 'world' database to do the matching in an
> external program? And does anybody now of other (more recent) world maps
> that I could use?
>
The short answer is that the file world.N in .../library/maps/mapdata/
contains the mapping from polygon numbers to names.
I think the only other thing you need to know is that the colours are
allocated sequentially in increasing numerical order of polygon number.
Ray Brownrigg
More information about the R-help
mailing list