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 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.