Skip to content

spatstat.linnet

Linear Networks Functionality of the 'spatstat' Family

v3.5-0 · Mar 30, 2026 · GPL (>= 2)

Description

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.

Downloads

21.8K

Last 30 days

810th

64.1K

Last 90 days

268.8K

Last year

Trend: +2.8% (30d vs prior 30d)

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (3 non-OK)
NOTE r-oldrel-macos-arm64

package dependencies

Depends: includes the non-default packages:
  'spatstat.data', 'spatstat.univar', 'spatstat.geom',
  'spatstat.random', 'spatstat.explore', 'spatstat.model'
Adding so many packages to the search path is excessive and importing
selectively is preferable.
NOTE r-oldrel-macos-x86_64

package dependencies

Depends: includes the non-default packages:
  'spatstat.data', 'spatstat.univar', 'spatstat.geom',
  'spatstat.random', 'spatstat.explore', 'spatstat.model'
Adding so many packages to the search path is excessive and importing
selectively is preferable.
NOTE r-oldrel-windows-x86_64

package dependencies

Depends: includes the non-default packages:
  'spatstat.data', 'spatstat.univar', 'spatstat.geom',
  'spatstat.random', 'spatstat.explore', 'spatstat.model'
Adding so many packages to the search path is excessive and importing
selectively is preferable.

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Depends: includes the non-default packages:
  'spatstat.data', 'spatstat.univar', 'spatstat.geom',
  'spatstat.random', 'spatstat.explore', 'spatstat.model'
Adding so many packages to the search path is excessive and importing
selectively is preferable.
NOTE r-oldrel-macos-x86_64

package dependencies

Depends: includes the non-default packages:
  'spatstat.data', 'spatstat.univar', 'spatstat.geom',
  'spatstat.random', 'spatstat.explore', 'spatstat.model'
Adding so many packages to the search path is excessive and importing
selectively is preferable.
NOTE r-oldrel-windows-x86_64

package dependencies

Depends: includes the non-default packages:
  'spatstat.data', 'spatstat.univar', 'spatstat.geom',
  'spatstat.random', 'spatstat.explore', 'spatstat.model'
Adding so many packages to the search path is excessive and importing
selectively is preferable.

Reverse Dependencies (22)

Dependency Network

Dependencies Reverse dependencies spatstat.data spatstat.univar spatstat.geom spatstat.random spatstat.explore spatstat.model Matrix spatstat.utils spatstat.sparse spatstat spatstat.Knet spatstat.gui DRHotNet SpatialVx graph4lg kernstadapt markstat rcarbon stlnpp stopp ttbary GET secrlinear sf +7 more reverse deps spatstat.linnet

Version History

updated 3.5-0 ← 3.4-1 diff Mar 31, 2026
new 3.4-1 Mar 10, 2026
updated 3.4-1 ← 3.4-0 diff Jan 30, 2026
updated 3.4-0 ← 3.3-2 diff Nov 28, 2025
updated 3.3-2 ← 3.3-1 diff Sep 23, 2025
updated 3.3-1 ← 3.2-6 diff Jul 23, 2025
updated 3.2-6 ← 3.2-5 diff May 22, 2025
updated 3.2-5 ← 3.2-3 diff Jan 21, 2025
updated 3.2-3 ← 3.2-2 diff Nov 18, 2024
updated 3.2-2 ← 3.2-1 diff Sep 19, 2024
updated 3.2-1 ← 3.1-5 diff Jul 14, 2024
updated 3.1-5 ← 3.1-4 diff Mar 24, 2024
updated 3.1-4 ← 3.1-3 diff Feb 3, 2024
updated 3.1-3 ← 3.1-1 diff Oct 27, 2023
updated 3.1-1 ← 3.1-0 diff May 14, 2023
updated 3.1-0 ← 3.0-6 diff Apr 13, 2023
updated 3.0-6 ← 3.0-4 diff Feb 21, 2023
updated 3.0-4 ← 3.0-3 diff Jan 26, 2023
updated 3.0-3 ← 3.0-2 diff Nov 14, 2022
updated 3.0-2 ← 2.3-2 diff Nov 8, 2022