README.md

maps

R package for geographical maps

This is version 3 of the maps package. The main change with respect to v2 is a more recent world map. The old map legacy map is still available from the package mapdata.

CHANGES

ADDITIONS

FIXES

FALL BACK TO LEGACY WORLD DATABASE

The old map data set has been moved to the 'mapdata' package, where it is called "worldLores". It can thus be called via map("mapdata::worldLores").

Note that the worldHires database from the mapdata package has identical map naming than the legacy world map. The only difference is in the resolution of the polylines. That high resolution version of the legacy map will remain unchanged.

Please inform the maintainer of any problem that requires a fallback to the legacy database!

HIGH RESOLUTION AND OTHER MAPS

Natural Earth also supports a high-resolution (1:10m) world map. Rather than replacing 'worldHires' (in the mapdata package), this data set can be imported into maps e.g. by loading the "rnaturalearth" package.

Even maps in e.g. shapefile format can now easily be imported for use in 'map()'. For instance the package 'maptools' offers the function 'readShapePoly()', which reads a shapefile into a 'SpatialPolygonsDataFrame' that can be used as a map database (as of version 3.1).

TO DO/DISCUSS:



adeckmyn/maps documentation built on Feb. 1, 2024, 3:37 p.m.