Chapter 12. Where in the World? – Geospatial Analysis

In this chapter, we will cover:

  • Downloading and plotting a Google map of an area
  • Overlaying data on the downloaded Google map
  • Importing ESRI shape files into R
  • Using the sp package to plot geographic data
  • Getting maps from the maps package
  • Creating spatial data frames from regular data frames containing spatial and other data
  • Creating spatial data frames by combining regular data frames with spatial objects
  • Adding variables to an existing spatial data frame

Introduction

Maps and other forms of geographical displays surround us. With the proliferation of location-aware mobile devices, people are also finding it increasingly easy to add spatial information to other data. We can also easily add a geographic ...

Get R: Recipes for Analysis, Visualization and Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.