26. Spatial Statistics

  1. Michael J. Crawley

Published Online: 6 NOV 2012

DOI: 10.1002/9781118448908.ch26

The R Book, Second Edition

The R Book, Second Edition

How to Cite

Crawley, M. J. (2012) Spatial Statistics, in The R Book, Second Edition, John Wiley & Sons, Ltd, Chichester, UK. doi: 10.1002/9781118448908.ch26

Author Information

  1. Imperial College London at Silwood Park, UK

Publication History

  1. Published Online: 6 NOV 2012
  2. Published Print: 7 DEC 2012

ISBN Information

Print ISBN: 9780470973929

Online ISBN: 9781118448908



  • spatial statistics;
  • point processes, random points in a circle;
  • nearest neighbours, tessellation;
  • tests for spatial randomness, Ripley's K;
  • quadrat-based, aggregated pattern/quadrat count data;
  • counting things on maps;
  • packages for spatial statistics;
  • spatstat package and spdep package;
  • dot-distribution map from relational database;
  • regression models with spatially correlated errors, generalized least squares


This chapter contains sections titled:

  • Point processes

  • Nearest neighbours

  • Tests for spatial randomness

  • Packages for spatial statistics

  • Geostatistical data

  • Regression models with spatially correlated errors: Generalized least squares

  • Creating a dot-distribution map from a relational database