The OpenStreetMap Package Opens Up
From the post:
A new version of the OpenStreetMap package is now up on CRAN, and should propagate to all the mirrors in the next few days. The primary purpose of the package is to provide high resolution map/satellite imagery for use in your R plots. The package supports base graphics and ggplot2, as well as transformations between spatial coordinate systems.
The bigest change in the new version is the addition of dozens of tile servers, giving the user the option of many different map looks, including those from Bing, MapQuest and Apple.
Very impressive display of the new capabilities in OpenStreetMap and this note about OpenStreetMap and ggmap:
Probably the main alternative to OpenStreetMap is the ggmap package. ggmap is an excellent package, and it is somewhat unfortunate that there is a significant duplication of effort between it and OpenStreetMap. That said, there are some differences that may help you decide which to use:
Reasons to favor OpenStreetMap:
- More maps: OpenStreetMap supports more map types.
- Better image resolution: ggmap only fetches one png from the server, and thus is limited to the resolution of that png, whereas OpenStreetMap can download many map tiles and stich them together to get an arbitrarily high image resolution.
- Transformations: OpenStreetMap can be used with any map coordinate system, whereas ggmap is limited to long-lat.
- Base graphics: Both packages support ggplot2, but OpenStreetMap also supports base graphics.
Reasons to favor ggmap:
- No Java dependency: ggmap does not require Java to be installed.
- Geocoding: ggmap has functions to do reverse geo coding.
- Google maps: While OpenStreetMap has more map types, it currently does not support google maps.
Fair enough?
Comments Off on The OpenStreetMap Package Opens Up