Welcome

This is the online home of Geocomputation with R, a book on geographic data analysis, visualization and modeling.

The geocompr book cover

Note: The first edition of the book has been published by CRC Press in the R Series. You can buy the book from CRC Press, or Amazon.

Inspired by bookdown and the Free and Open Source Software for Geospatial (FOSS4G) movement, this book is open source. This ensures its contents are reproducible and publicly accessible for people worldwide.

The online version of the book is hosted at geocompr.robinlovelace.net and kept up-to-date by GitHub Actions, which provides information on its ‘build status’ as follows:

Actions

This version of the book was built on GH Actions on 2021-09-21.

How to contribute?

bookdown makes editing a book as easy as editing a wiki, provided you have a GitHub account (sign-up at github.com). Once logged-in to GitHub, click on the ‘Edit this page’ icon in the right panel of the book website. This will take you to an editable version of the the source R Markdown file that generated the page you’re on.

To raise an issue about the book’s content (e.g. code not running) or make a feature request, check-out the issue tracker.

Maintainers and contributors must follow this repository’s CODE OF CONDUCT.

Reproducibility

To reproduce the code in the book, you need a recent version of R and up-to-date packages. These can be installed with the following command (which requires remotes to be installed):

install.packages("remotes")
remotes::install_github("geocompr/geocompkg")
remotes::install_github("nowosad/spData")
remotes::install_github("nowosad/spDataLarge")

# During development work on the 2nd edition you may also need dev versions of
# other packages to build the book, e.g.:
remotes::install_github("rspatial/terra")
remotes::install_github("mtennekes/tmap")

See the project’s GitHub repo for details on reproducing the book.

Supporting the project

If you find the book useful, please support it by:

Further details can be found at github.com/Robinlovelace/geocompr.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.