Skip to content

spatstat/spatstat

Repository files navigation

spatstat

spatstat is a family of R packages for analysing spatial point pattern data (and other kinds of spatial data). It has extensive capabilities for exploratory analysis, statistical modelling, simulation and statistical inference.

See the website www.spatstat.org or read the book.

spatstat has been split into a family of packages

Originally there was a single package called spatstat. It grew so large that CRAN required us to split it into pieces.

The original spatstat has now been divided into a family of 10 sub-packages:

Sub-package CRAN page GitHub repository Description
spatstat.utils CRAN_Status_Badge GitHub R package version Basic utilities
spatstat.data CRAN_Status_Badge GitHub R package version Datasets
spatstat.sparse CRAN_Status_Badge GitHub R package version Sparse arrays
spatstat.univar CRAN_Status_Badge GitHub R package version Univariate probability distributions
spatstat.geom CRAN_Status_Badge GitHub R package version Spatial data classes; geometrical operations
spatstat.random CRAN_Status_Badge GitHub R package version Generation of random patterns
spatstat.explore CRAN_Status_Badge GitHub R package version Exploratory Data Analysis of spatial data
spatstat.model CRAN_Status_Badge GitHub R package version Parametric modelling and formal inference for spatial data
spatstat.linnet CRAN_Status_Badge GitHub R package version Spatial analysis on a linear network
spatstat CRAN_Status_Badge GitHub R package version Umbrella package: introduction, vignettes, documentation

Click the green badge to visit the CRAN page which contains the current release of each sub-package. Click the blue badge to visit the GitHub repository for the current development version of the sub-package.

There still exists a package called spatstat, which is now an umbrella package that requires all the sub-packages listed above, and provides introductory guides and vignettes.

You can install and load the new spatstat family in virtually the same way as you would previously have installed and loaded the old spatstat package. When you install the new umbrella package spatstat, all the sub-packages listed above will be installed. When you load the new umbrella spatstat package in an R session, all the sub-packages listed above will be loaded or imported.

Extension packages

Additionally there are extension packages which contain more functionality. These packages are not automatically installed or loaded; the user must do that if these extra features are desired.

Extension package CRAN page GitHub repository Description
spatstat.gui CRAN_Status_Badge GitHub R package version Graphical interface
spatstat.Knet CRAN_Status_Badge GitHub R package version linear networks
spatstat.local CRAN_Status_Badge GitHub R package version Local (geographically weighted) models
spatstat.sphere Not yet published GitHub R package version Spherical data

Family portrait

The pink box marked spatstat contains all the code that will be installed when you install the spatstat umbrella package, and loaded or imported when you load the spatstat umbrella package.

The blue boxes are extension packages which must be installed and loaded separately.

Spatstat pieces

Future development

spatstat is the result of 30 years of software development and contains over 180,000 lines of code. It is still under development, motivated by the needs of researchers in many fields, and driven by innovations in statistical science. We welcome contributions of code, and suggestions for improvements.