Skip to content

spatstat.linnet

Linear Networks Functionality of the 'spatstat' Family

v3.4-1 · Jan 31, 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

19.3K

Last 30 days

820th

19.3K

Last 90 days

19.3K

Last year

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 (14 non-OK)
OK 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

*


            
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.
OK 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

*


            

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 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

new 3.4-1 Mar 9, 2026