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 packages rgdal and sp. If you have issues installing the rgdal package on Mac or Linux, refer to the earlier recipe for details.

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