talira

spatstat

Spatial point pattern analysis, model fitting and simulation in R

open sourceGPL-2.0-or-laterfree

spatstat is a comprehensive R toolbox for analysing spatial point patterns, mainly two-dimensional (including marked points) but also three-dimensional, space-time and linear-network patterns. Its 3,000+ functions cover plotting, exploratory analysis (quadrat counts, K-functions with simulation envelopes, nearest-neighbour statistics, kernel-smoothed intensity), formal hypothesis tests, and fitting Poisson, Gibbs, Cox, cluster and determinantal point process models with ppm(), kppm() and related functions much like glm(). It's led by Adrian Baddeley.

Problems it solves

  • test whether points are randomly distributed in R
  • fit a spatial point process model in R
  • analyse the locations of trees or cases on a map in R

Features

  • 2D, 3D, space-time and linear-network point patterns
  • K-functions, envelopes and nearest-neighbour statistics
  • hypothesis tests of complete spatial randomness
  • Poisson, Gibbs, Cox and cluster point process models
  • replicated point patterns with random effects