spatstat.linnet: Linear Networks Functionality of the 'spatstat' Family

Defines types of spatial data on a linear network and provides functionality for geometrical operations, data analysis and modelling of data on a linear network, in the 'spatstat' family of packages. Contains definitions and support for linear networks, including creation of networks, geometrical measurements, topological connectivity, geometrical operations such as inserting and deleting vertices, intersecting a network with another object, and interactive editing of networks. Data types defined on a network include point patterns, pixel images, functions, and tessellations. Exploratory methods include kernel estimation of intensity on a network, K-functions and pair correlation functions on a network, simulation envelopes, nearest neighbour distance and empty space distance, relative risk estimation with cross-validated bandwidth selection. Formal hypothesis tests of random pattern (chi-squared, Kolmogorov-Smirnov, Monte Carlo, Diggle-Cressie-Loosmore-Ford, Dao-Genton, two-stage Monte Carlo) and tests for covariate effects (Cox-Berman-Waller-Lawson, Kolmogorov-Smirnov, ANOVA) are also supported. Parametric models can be fitted to point pattern data using the function lppm() similar to glm(). Only Poisson models are implemented so far. Models may involve dependence on covariates and dependence on marks. Models are fitted by maximum likelihood. Fitted point process models can be simulated, automatically. Formal hypothesis tests of a fitted model are supported (likelihood ratio test, analysis of deviance, Monte Carlo tests) along with basic tools for model selection (stepwise(), AIC()) and variable selection (sdr). Tools for validating the fitted model include simulation envelopes, residuals, residual plots and Q-Q plots, leverage and influence diagnostics, partial residuals, and added variable plots. Random point patterns on a network can be generated using a variety of models.

Version: 3.2-1
Depends: R (≥ 3.5.0), (≥ 3.0-4), spatstat.univar (≥ 3.0-0), spatstat.geom (≥ 3.2-9.028), spatstat.random (≥ 3.2-3.003), spatstat.explore (≥ 3.2-7.006), spatstat.model (≥ 3.2-11.005), stats, graphics, grDevices, methods, utils
Imports: spatstat.utils (≥ 3.0-5), Matrix, spatstat.sparse (≥ 3.1-0)
Suggests: goftest, locfit, spatstat (≥ 3.0)
Published: 2024-07-15
DOI: 10.32614/CRAN.package.spatstat.linnet
Author: Adrian Baddeley ORCID iD [aut, cre, cph], Rolf Turner ORCID iD [aut, cph], Ege Rubak ORCID iD [aut, cph], Greg McSwiggan [aut, cph], Tilman Davies [ctb, cph], Mehdi Moradi [ctb, cph], Suman Rakshit [ctb, cph], Ottmar Cronie [ctb]
Maintainer: Adrian Baddeley <Adrian.Baddeley at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: yes
Citation: spatstat.linnet citation info
Materials: NEWS
CRAN checks: spatstat.linnet results


Reference manual: spatstat.linnet.pdf


Package source: spatstat.linnet_3.2-1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): spatstat.linnet_3.2-1.tgz, r-oldrel (arm64): spatstat.linnet_3.2-1.tgz, r-release (x86_64): spatstat.linnet_3.2-1.tgz, r-oldrel (x86_64): spatstat.linnet_3.2-1.tgz
Old sources: spatstat.linnet archive

Reverse dependencies:

Reverse depends: spatstat, spatstat.gui, spatstat.Knet
Reverse imports: DRHotNet, graph4lg, rcarbon, SpatialVx, stlnpp, stopp, ttbary
Reverse suggests: GET, sf, sfnetworks,, spatstat.explore, spatstat.geom, spatstat.model, spatstat.random


Please use the canonical form to link to this page.