How to do it...

Perform the following steps to analyze spatial data with R and QGIS:

  1. Load the airport data in the QGIS interface by navigating to Layer | Add Layer | Add Vector Layer... and browse the airport.dbf file:
  1. Now we can visualize the airport data:
  1. Check the attributes by right-clicking over the airports file and then click on Open Attribute Table from the QGIS layer panel:
  1. Navigate to the processing toolbox panel and click on  ...

Get R Data Analysis Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.