Geocomputation with R

This book is about using the power of computers to do things with geographic data. It teaches a range of spatial skills, including: reading, writing and manipulating geographic file formats; making static and interactive maps; and applying geocomputation to support more evidence-based decision making related to a range of geographic phenomena, from transport systems to ecosystems. By demonstrating how various geographic operations can be linked, in ‘code chunks’ that intersperse the prose, the book also teaches reproducible, open and thus scientific workflows.

This resource is the online counterpart of the book "Geocomputation with R".

Who this book is for

  • This book is for people who want to analyze, visualize and model geographic data with open source software. It is based on R, a statistical programming language that has powerful data processing, visualization and geospatial capabilities.
  • The book is designed for intermediate-to-advanced R users interested in geocomputation and R beginners who have prior experience with geographic data.

Outline of contents


  1. Introduction
  2. Geographic data in R
  3. Attribute data operations
  4. Spatial data operations
  5. Geometry operations
  6. Raster-vector interactions
  7. Reprojecting geographic data
  8. Geographic data I/O


  1. Making maps with R
  2. Bridges to GIS software
  3. Scripts, algorithms and functions
  4. Statistical learning


  1. Transportation
  2. Geomarketing
  3. Ecology

The resource is:

Inspired by the Free and Open Source Software for Geospatial (FOSS4G) movement, the code and prose underlying this book are open, ensuring that the content is reproducible, transparent, and accessible.

Please see above or at the resource's page regarding the license.
Created by Cyrille Médard de Chardon
on 2024-05-27