7.3 Geographic data: Raster image

  • Raster image
    • Draw a traditional image underneath some data you want to show
    • e.g., get raster map of given area from ggmap package (e.g., relying GoogleMaps)37
    • Download may be timeconsumg so better cahe it as rds file.
    • Define area by specifying bbox
    • See ?get_googlemap() and ?register_google() [You will need an API key]
Rasters from Google Maps

Figure 7.1: Rasters from Google Maps


  1. OpenStreetMaps does not work anymore… https://github.com/dkahle/ggmap/issues/117.