Spatial Point Patterns: Methodology and Applications with R
by Adrian Baddeley, Ege Rubak and Rolf Turner


Instructions for chapter code usage

For each chapter a script is provided which generates all results and figures of that chapter. Most of the commands can simply be copied-and-pasted into an R session where spatstat is loaded. However, several chunks of code require that one or more auxiliary R scripts have been loaded first. To be able to run all chapter scripts from the current working directory it must contain a subdirectory called ‘R’ containing the following files:

You will also need a subdirectory called ‘data’ containing the following files:

The code for each chapter is here: