O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting ready

Install the rgdal and sp packages. At the time of writing, installing rgdal on macOS X is tricky. Binary packages are unavailable and different versions of the OS require us to do different things. You will need to research this on the web and get it installed.

Copy the following files to your R working directory:

  • ne_50m_admin_0_countries.shp
  • ne_50m_admin_0_countries.prj
  • ne_50m_admin_0_countries.shx
  • ne_50m_admin_0_countries.VERSION.txt
  • ne_50m_airports.shp
  • ne_50m_airports.prj
  • ne_50m_airports.shx
  • ne_50m_airports.VERSION.txt

We obtained these files from http://www.naturalearthdata.com/.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required