Software documentation

To get help about spatstat, the main sources are:

The Quick Reference Guide is good for browsing around for functions if you are looking to do a specific task.


The recently published book [1] is a comprehensive course on analysing spatial point patterns using the spatstat package. It is available as an eBook or in print.

[1] A. Baddeley, E. Rubak and R.Turner. Spatial Point Patterns: Methodology and Applications with R. Chapman and Hall/CRC Press, 2015. Publisher’s web page for book

Visit our companion website for the book for a table of contents, free sample chapters, R code for producing figures and output in all chapters, etc.

Older references

The following articles, which are older than the book, described many of the main concepts in spatstat. Article [2] introduced the package and described basic use. Article [3] explained how to fit models to point pattern data, and the scope of models was extended in [4]. The notes [5] are from a two-day training workshop on the spatstat package given in 2010 (which is now out-of-date).

[2] A. Baddeley and R. Turner. Spatstat: an R package for analyzing spatial point patterns Journal of Statistical Software 12: 6 (2005) 1-42. ISSN: 1548-7660
Direct download here (42 pages, pdf, 1.05 Mb)

[3] A. Baddeley and R. Turner. Modelling spatial point patterns in R. Chapter 2, pages 23-74 in In Case Studies in Spatial Point Pattern Modelling (eds. A. Baddeley, P. Gregori, J. Mateu, R. Stoica and D. Stoyan) Lecture Notes in Statistics 185. New York: Springer-Verlag 2006. ISBN: 0-387-28311-0

[4] A. Baddeley, R. Turner, J. Mateu and A. Bevan. Hybrids of Gibbs point process models and their implementation. Journal of Statistical Software 55 (2013) 11, 1-43 Download here

[5] A. Baddeley. Analysing Spatial Point Patterns in R. Workshop Notes, December 2010. Published online by CSIRO, Australia. Download here (232 pages, pdf, 12.2Mb)

Citing spatstat

If you use spatstat for research that leads to publications, it would be much appreciated if you could acknowledge spatstat in your publications, preferably citing our recent book [1].

Citations help us to justify the expenditure of time and effort on maintaining and developing the package.

The help files for spatstat and the supporting documentation are copyright. Please do not copy substantial amounts of text from the spatstat help files into a scientific publication, without proper acknowledgement.