Linear Networks Functionality of the 'spatstat' Family
Overview
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.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-07-31
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 166 (2 internal)includes a package overview page
- Examples that run
- 100%156 run in a plain check (10 of them under a condition)
- Exported functions with examples
- 95%
- Documented parameters
- 84%
- Return-value docs
- 100%
- Help pages citing references
- 35%
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/spatstat/spatstat.linnet on 2026-10-22.
Dependencies
Installing spatstat.linnet adds 13 packages (10 with compiled code, 6.0 MB of source tarballs). Heaviest: spatstat.data 2.9 MB, spatstat.model 849 KB, spatstat.geom 816 KB.
Show all 24 packagesHide all 24 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 3.5-4Latest
- 3.5-3
- 3.5-1
- RR 4.6.0 released · 2026-04-24
- 3.5-0
- 3.4-1
- 3.4-02025-11-29 · diff ↗ ·
added 42 exports
affine.lintess, as.function.linim, as.function.linnet, as.function.lintess, as.linim.function, as.lintess, as.lintess.linearquadratcount, as.lintess.linnet, as.lintess.lintess, as.owin.linearquadratcount, diagLppmEngine, diagnose.lppm, domain.linearquadratcount, eem.lppm, flipxy.linnet, flipxy.lintess, flipxy.lpp, harmonise.linim, harmonize.linim, intensity.linearquadratcount, linim.apply, lurking.lpp, lurking.lppm, marginalIntegralOfLinim, parres.lppm, plot.diaglppm, plot.linearquadratcount, plot.qqlppm, print.diaglppm, print.qqlppm and 12 more - 3.3-22025-09-24 · diff ↗
- 3.3-12025-07-24 · diff ↗ ·
added 4 exports
as.linfun.linnet, identify.linnet, identify.lintess, unmark.linnet - 3.2-62025-05-23 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 3.2-52025-01-22 · diff ↗
- 3.2-32024-11-19 · diff ↗
- 3.2-22024-09-20 · diff ↗
- 3.2-12024-07-15 · diff ↗ ·
added 10 exports
evaluateNetCovariate, evaluateNetCovariateAlongNetwork, evaluateNetCovariateAtPoints, exactlppm, is.poisson.exactlppm, is.stationary.exactlppm, predict.exactlppm, print.exactlppm, response.exactlppm, spatialCovariateEvidence.exactlppm - RR 4.4.0 released · 2024-04-24
Show 20 earlier eventsHide 20 earlier events
- 3.1-52024-03-25 · diff ↗
- 3.1-42024-02-04 · diff ↗ ·
added 5 exports
getglmdata.lppm, getglmfit.lppm, getglmsubset.lppm, hasglmfit.lppm, traceTessLinnet - 3.1-32023-10-28 · diff ↗
- 3.1-12023-05-15 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 3.1-02023-04-14 · diff ↗
- 3.0-62023-02-22 · diff ↗
- 3.0-4
- 3.0-32022-11-15 · diff ↗
- 3.0-22022-11-09 · diff ↗ ·
removed 2 exports
evalCovar.lppm, getlambda.lppadded 19 exports
bw.relrisk.lpp, distmap.lpp, lineardiscEngine, lineardisclength, linearEuclidEngine, linearJinhom, linearKEuclid, linearKEuclidInhom, linearpcfEuclid, linearpcfEuclidInhom, marks.linnet, marks<-.linnet, resolve.lambda.lpp, rmaxEuclidean, rThomaslpp, Smooth.lpp, spatialCovariateEvidence.lppm, terminalvertices, updateData.lppm - RR 4.2.0 released · 2022-04-22
- 2.3-22022-02-16 · diff ↗
- 2.3-1
- 2.3-0
- 2.2-12021-06-22 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 2.1-1
- 2.0-0
- 1.65-32021-02-05
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-02-05
- Total releases
- 29 / 5 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.5.0
- Download size
- 342 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("spatstat.linnet")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v055.i11, 10.18637/jss.v012.i06.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.