Learn R Programming

spatstat.linnet (version 3.2-2)

Linear Networks Functionality of the 'spatstat' Family

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.

Copy Link

Version

Install

install.packages('spatstat.linnet')

Monthly Downloads

15,738

Version

3.2-2

License

GPL (>= 2)

Maintainer

Last Published

September 20th, 2024

Functions in spatstat.linnet (3.2-2)

as.linfun

Convert Data to a Function on a Linear Network
as.linnet.psp

Convert Line Segment Pattern to Linear Network
as.linnet.linim

Extract Linear Network from Data on a Linear Network
as.linim

Convert to Pixel Image on Linear Network
as.owin.lpp

Convert Data on a Network to class owin
auc.lpp

Area Under ROC Curve for Data on a Network
as.data.frame.lintess

Convert Network Tessellation to Data Frame
as.lpp

Convert Data to a Point Pattern on a Linear Network
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
connected.linnet

Connected Components of a Linear Network
chop.linnet

Divide a Linear Network into Tiles Using Infinite Lines
clickjoin

Interactively join vertices on a plot
clicklpp

Interactively Add Points on a Linear Network
bw.voronoi

Cross Validated Bandwidth Selection for Voronoi Estimator of Intensity on a Network
begins

Check Start of Character String
cdf.test.lpp

Spatial Distribution Test for Points on a Linear Network
berman.test.lpp

Berman's Tests for Point Process Model on a Network
bw.lppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density on a Linear Network
bw.relrisk.lpp

Cross Validated Bandwidth Selection for Relative Risk Estimation on a Network
branchlabelfun

Tree Branch Membership Labelling Function
deletebranch

Delete or Extract a Branch of a Tree
crossing.linnet

Crossing Points between Linear Network and Other Lines
connected.lpp

Connected Components of a Point Pattern on a Linear Network
density.linnet

Kernel Smoothing of Linear Network
cut.lpp

Classify Points in a Point Pattern on a Network
density.lpp

Kernel Estimate of Intensity on a Linear Network
diameter.linnet

Diameter and Bounding Radius of a Linear Network
densityEqualSplit

Equal-Split Algorithm for Kernel Density on a Network
delaunayNetwork

Linear Network of Delaunay Triangulation or Dirichlet Tessellation
data.lppm

Extract Original Data from a Fitted Point Process Model on a Network
distfun.lpp

Distance Map on Linear Network
domain.lpp

Extract the Linear Network on which Spatial Data are Defined
envelope.lpp

Envelope for Point Patterns on Linear Network
crossdist.lpp

Pairwise distances between two point patterns on a linear network
densityVoronoi.lpp

Intensity Estimate of Point Pattern on Linear Network Using Voronoi-Dirichlet Tessellation
densityfun.lpp

Kernel Estimate of Intensity on a Linear Network as a Spatial Function
is.marked.lppm

Test Whether A Point Process Model is Marked
is.connected.linnet

Determine Whether a Linear Network is Connected
densityHeat.lpp

Kernel Density on a Network using Heat Equation
distmap.lpp

Distance Map of Point Pattern on Linear Network
insertVertices

Insert New Vertices in a Linear Network
is.stationary.lppm

Recognise Stationary and Poisson Point Process Models on a Network
divide.linnet

Divide Linear Network at Cut Points
joinVertices

Join Vertices in a Network
integral.linim

Integral on a Linear Network
is.multitype.lpp

Test Whether A Point Pattern on a Network is Multitype
linearpcfEuclid

Linear Pair Correlation Function Using Euclidean Distance
linearpcfEuclidInhom

Inhomogeneous Linear Pair Correlation Function Based on Euclidean Distances
heatkernelapprox

Approximation to Heat Kernel on Linear Network at Source Point
intensity.lpp

Empirical Intensity of Point Pattern on Linear Network
identify.lpp

Identify Points in a Point Pattern on a Linear Network
is.multitype.lppm

Test Whether A Point Process Model is Multitype
linearKdot

Multitype K Function (Dot-type) for Linear Point Pattern
linearKdot.inhom

Inhomogeneous multitype K Function (Dot-type) for Linear Point Pattern
eval.linim

Evaluate Expression Involving Pixel Images on Linear Network
fitted.lppm

Fitted Intensity for Point Process on Linear Network
densityQuick.lpp

Kernel Estimation of Intensity on a Network using a 2D Kernel
linearpcfdot

Multitype Pair Correlation Function (Dot-type) for Linear Point Pattern
linearJinhom

Inhomogeneous Linear J-function for Point Processes on Linear Networks
intersect.lintess

Intersection of Tessellations on a Linear Network
linearpcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Dot-type) for Linear Point Pattern
linearKinhom

Inhomogeneous Linear K Function
linearKEuclid

Linear K Function Using Euclidean Distance
marks.linnet

Marks of a Network
linearK

Linear K Function
model.frame.lppm

Extract the Variables in a Point Process Model on a Network
lineardisc

Compute Disc of Given Radius in Linear Network
linearKcross

Multitype K Function (Cross-type) for Linear Point Pattern
linequad

Quadrature Scheme on a Linear Network
linfun

Function on a Linear Network
linearKcross.inhom

Inhomogeneous multitype K Function (Cross-type) for Linear Point Pattern
linearpcfcross

Multitype Pair Correlation Function (Cross-type) for Linear Point Pattern
plot.lppm

Plot a Fitted Point Process Model on a Linear Network
marks.lintess

Marks of a Tessellation on a Network
lineardirichlet

Dirichlet Tessellation on a Linear Network
nnfun.lpp

Nearest Neighbour Map on Linear Network
lintess

Tessellation on a Linear Network
linearpcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-type) for Linear Point Pattern
rSwitzerlpp

Switzer-type Point Process on Linear Network
mean.linim

Mean, Median, Quantiles of Pixel Values on a Linear Network
methods.linim

Methods for Images on a Linear Network
lixellate

Subdivide Segments of a Network
linearKEuclidInhom

Inhomogeneous Linear K Function Based on Euclidean Distances
linearmarkconnect

Mark Connection Function for Multitype Point Pattern on Linear Network
methods.linnet

Methods for Linear Networks
model.images.lppm

Compute Images of Constructed Covariates
plot.linim

Plot Pixel Image on Linear Network
linnet

Create a Linear Network
runiflpp

Uniform Random Points on a Linear Network
model.matrix.lppm

Extract Design Matrix from Point Process Model on a Network
tilenames.lintess

Names of Tiles in a Tessellation on a Network
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
nndist.lpp

Nearest neighbour distances on a linear network
linearmarkequal

Mark Connection Function for Multitype Point Pattern on Linear Network
nnwhich.lpp

Identify Nearest Neighbours on a Linear Network
lineartileindex

Determine Which Tile Contains Each Given Point on a Linear Network
nnfromvertex

Nearest Data Point From Each Vertex in a Network
repairNetwork

Repair Internal Data in a Linear Network
nncross.lpp

Nearest Neighbours on a Linear Network
roc.lpp

Receiver Operating Characteristic for Data on a Network
rcelllpp

Simulate Cell Process on Linear Network
linearpcf

Linear Pair Correlation Function
methods.linfun

Methods for Functions on Linear Network
plot.linnet

Plot a linear network
persp.linfun

Perspective View of Function on a Linear Network
methods.lpp

Methods for Point Patterns on a Linear Network
rhohat.lpp

Nonparametric Estimate of Intensity as Function of a Covariate
unstack.lpp

Separate Multiple Columns of Marks
points.lpp

Draw Points on Existing Plot
terminalvertices

Terminal Vertices of a Linear Network
pairdist.lpp

Pairwise shortest-path distances between points on a linear network
rpoislpp

Poisson Point Process on a Linear Network
persp.linim

Perspective View of Pixel Image on a Linear Network
predict.lppm

Predict Point Process Model on Linear Network
linim

Create Pixel Image on Linear Network
simulate.lppm

Simulate a Fitted Point Process Model on a Linear Network
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
rjitter.lpp

Random Perturbation of a Point Pattern on a Network
plot.lintess

Plot a Tessellation on a Linear Network
spatstat.linnet-internal

Internal spatstat.linnet functions
rlpp

Random Points on a Linear Network
plot.lpp

Plot Point Pattern on Linear Network
treebranchlabels

Label Vertices of a Tree by Branch Membership
treeprune

Prune Tree to Given Level
relrisk.lpp

Nonparametric Estimate of Spatially-Varying Relative Risk on a Network
pseudoR2.lppm

Calculate Pseudo-R-Squared for Point Process Model on Linear Network
lpp

Create Point Pattern on Linear Network
rThomaslpp

Simulate Thomas Process on Linear Network
spatstat.linnet-deprecated

Deprecated spatstat.linnet functions
spatstat.linnet-package

The spatstat.linnet Package
lppm

Fit Point Process Model to Point Pattern on Linear Network
text.lpp

Add Text Labels to Point Pattern on a Network
sdr.lpp

Sufficient Dimension Reduction for a Point Pattern on a Linear Network
pairs.linim

Scatterplot Matrix for Pixel Images on a Linear Network
subset.lpp

Subset of Point Pattern Satisfying A Condition
superimpose.lpp

Superimpose Several Point Patterns on Linear Network
tile.lengths

Compute Lengths of Tiles in a Tessellation on a Network
thinNetwork

Remove Vertices or Segments from a Linear Network
Extract.linim

Extract Subset of Pixel Image on Linear Network
affine.lpp

Apply Geometrical Transformations to Point Pattern on a Linear Network
affine.linnet

Apply Geometrical Transformations to a Linear Network
Smooth.lpp

Spatial Smoothing of Observations on a Network
Math.linim

S3 Group Generic Methods for Images on a Linear Network
Extract.lpp

Extract Subset of Point Pattern on Linear Network
Window.lpp

Extract Window of Spatial Object on a Network
Extract.linnet

Extract Subset of Linear Network
Replace.linim

Reset Values in Subset of Image on Linear Network
addVertices

Add New Vertices to a Linear Network