# spatstat

> Spatial point pattern analysis, model fitting and simulation in R

Source: https://talira.ai/catalog/spatstat-hy6ke0f0
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / statistics](https://talira.ai/categories/libraries/math/statistics), [languages / r](https://talira.ai/categories/languages/r)
- Licence: GPL-2.0-or-later[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [spatstat](https://talira.ai/orgs/spatstat.md)

spatstat is a comprehensive [R](https://talira.ai/catalog/r-jj1se4aq.md) 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.

## Links

- Website: https://spatstat.org/
- GitHub: https://github.com/spatstat/spatstat
- Docs: https://spatstat.org/

## 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

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.66, adoption 0.46, momentum 0.12, community 0.45, backing 0.30, extensibility 0.00.

- last commit 3 days ago
- 9 commits in the last 90 days
- latest release v3.6-1 6 months ago
- 210 GitHub stars
- 12 contributors
- has a company behind it

## Sources

[^1]: https://github.com/spatstat/spatstat/blob/master/DESCRIPTION (checked 29 Nov 2026)
