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:
- startup.R (required by all chapters)
- figurelayout.R (required by all chapters)
- fijiquakes.R (required by chapter 6)
- rSpecialMC.R (required by chapter 12)
- rSpecialNS.R (required by chapter 12)
- short.output.R (required by chapters 16 and 17)
- shortestpath.R (required by chapter 17)
You will also need a subdirectory called ‘data’ containing the following files:
- subWinElev.dput (required by chapter 4)
- potatoes.rda (required by chapter 5)
- simpletree.rda (required by chapter 17)
- dendriteLam10.rda (required by chapter 17)
- dendriteSplitLam10.rda (required by chapter 17)
The code for each chapter is here: