[R] Maps: Country coding

Ray Brownrigg Ray.Brownrigg at ecs.vuw.ac.nz
Tue Apr 27 23:30:46 CEST 2010

On Wed, 28 Apr 2010, Berthold Stegemann wrote:
> Hello,
> I am using the maps library for plotting maps.
> To build new geograhical sets such as Europe I use
> europe = c('Germany','Netherlands',...)
> Is there a list of county codes used by the map function.
> Thanks,
> Berthold

If you mean the names of the countries, have a look at the file:
${R_HOME}/library/maps/mapdata/world.N which lists the name associated with every polygon.

Note that the maps database is historical, for example Czechoslovakia is one country.

Hope this helps,
Ray Brownrigg

More information about the R-help mailing list