Geocomputation with R
2021-08-27
Welcome
This is the online home of the First edition of Geocomputation with R, a book on geographic data analysis, visualization and modeling, first published in 2019. See geocompr.robinlovelace.net for the Second Edition, due for publication in 2022.
Note: This book has now been published by CRC Press in the R Series. You can buy the book from CRC Press, Wordery, 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:
This version of the book was built on 2021-08-27.
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 me’ icon highlighted with a red ellipse in the image below. 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):
::install_github("geocompr/geocompkg") remotes
To build the book locally, clone or download the geocompr repo, load R in root directory (e.g. by opening geocompr.Rproj in RStudio) and run the following lines:
::render_book("index.Rmd") # to build the book
bookdownbrowseURL("_book/index.html") # to view it
Supporting the project
If you find the book useful, please support it by:
- Telling people about it in person
- Communicating about the book in digital media e.g. via the #geocompr hashtag on Twitter (see our Guestbook at geocompr.github.io) or by letting us know of courses using the book
- Citing or linking-to it
- ‘Starring’ the geocompr GitHub repository
- Reviewing it, e.g. on Amazon or Goodreads
- Asking questions about or making suggestion on the content via GitHub or Twitter.
- Buying a copy
Further details can be found at github.com/Robinlovelace/geocompr.
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.