Learn R Programming

⚠️There's a newer version (3.2-5) of this package.Take me there.

spatstat.linnet (version 3.2-1)

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

14,797

Version

3.2-1

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

July 15th, 2024

Functions in spatstat.linnet (3.2-1)

Extract.linnet

Extract Subset of Linear Network
affine.lpp

Apply Geometrical Transformations to Point Pattern on a Linear Network
Extract.lpp

Extract Subset of Point Pattern on Linear Network
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
auc.lpp

Area Under ROC Curve for Data on a Network
begins

Check Start of Character String
as.owin.lpp

Convert Data on a Network to class owin
as.data.frame.lintess

Convert Network Tessellation to Data Frame
as.lpp

Convert Data to a Point Pattern on a Linear Network
as.linnet.linim

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

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

Convert Line Segment Pattern to Linear Network
as.linim

Convert to Pixel Image on Linear Network
clicklpp

Interactively Add Points on a Linear Network
clickjoin

Interactively join vertices on a plot
bw.relrisk.lpp

Cross Validated Bandwidth Selection for Relative Risk Estimation on a Network
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
chop.linnet

Divide a Linear Network into Tiles Using Infinite Lines
bw.voronoi

Cross Validated Bandwidth Selection for Voronoi Estimator of Intensity on a Network
bw.lppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density on a Linear Network
branchlabelfun

Tree Branch Membership Labelling Function
connected.linnet

Connected Components of a Linear Network
density.lpp

Kernel Estimate of Intensity on a Linear Network
crossdist.lpp

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

Connected Components of a Point Pattern on a Linear Network
deletebranch

Delete or Extract a Branch of a Tree
density.linnet

Kernel Smoothing of Linear Network
densityEqualSplit

Equal-Split Algorithm for Kernel Density on a Network
data.lppm

Extract Original Data from a Fitted Point Process Model on a Network
crossing.linnet

Crossing Points between Linear Network and Other Lines
delaunayNetwork

Linear Network of Delaunay Triangulation or Dirichlet Tessellation
domain.lpp

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

Envelope for Point Patterns on Linear Network
diameter.linnet

Diameter and Bounding Radius of a Linear Network
densityfun.lpp

Kernel Estimate of Intensity on a Linear Network as a Spatial Function
distmap.lpp

Distance Map of Point Pattern on Linear Network
densityVoronoi.lpp

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

Distance Map on Linear Network
cut.lpp

Classify Points in a Point Pattern on a Network
eval.linim

Evaluate Expression Involving Pixel Images on Linear Network
intensity.lpp

Empirical Intensity of Point Pattern on Linear Network
divide.linnet

Divide Linear Network at Cut Points
densityHeat.lpp

Kernel Density on a Network using Heat Equation
linearJinhom

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

Intersection of Tessellations on a Linear Network
linearK

Linear K Function
densityQuick.lpp

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

Inhomogeneous Linear K Function
lineardirichlet

Dirichlet Tessellation on a Linear Network
fitted.lppm

Fitted Intensity for Point Process on Linear Network
insertVertices

Insert New Vertices in a Linear Network
is.connected.linnet

Determine Whether a Linear Network is Connected
heatkernelapprox

Approximation to Heat Kernel on Linear Network at Source Point
is.stationary.lppm

Recognise Stationary and Poisson Point Process Models on a Network
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
integral.linim

Integral on a Linear Network
identify.lpp

Identify Points in a Point Pattern on a Linear Network
joinVertices

Join Vertices in a Network
is.marked.lppm

Test Whether A Point Process Model is Marked
lineartileindex

Determine Which Tile Contains Each Given Point on a Linear Network
is.multitype.lpp

Test Whether A Point Pattern on a Network is Multitype
linim

Create Pixel Image on Linear Network
is.multitype.lppm

Test Whether A Point Process Model is Multitype
linearKdot

Multitype K Function (Dot-type) for Linear Point Pattern
linearKEuclid

Linear K Function Using Euclidean Distance
lintess

Tessellation on a Linear Network
linearKdot.inhom

Inhomogeneous multitype K Function (Dot-type) for Linear Point Pattern
linearpcfEuclid

Linear Pair Correlation Function Using Euclidean Distance
lixellate

Subdivide Segments of a Network
linearpcfEuclidInhom

Inhomogeneous Linear Pair Correlation Function Based on Euclidean Distances
methods.linim

Methods for Images on a Linear Network
linearpcfcross

Multitype Pair Correlation Function (Cross-type) for Linear Point Pattern
linearpcfcross.inhom

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

Create Point Pattern on Linear Network
methods.lpp

Methods for Point Patterns on a Linear Network
linearKcross

Multitype K Function (Cross-type) for Linear Point Pattern
methods.linnet

Methods for Linear Networks
model.matrix.lppm

Extract Design Matrix from Point Process Model on a Network
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
plot.lintess

Plot a Tessellation on a Linear Network
linearKEuclidInhom

Inhomogeneous Linear K Function Based on Euclidean Distances
linearKcross.inhom

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

Mark Connection Function for Multitype Point Pattern on Linear Network
lppm

Fit Point Process Model to Point Pattern on Linear Network
linnet

Create a Linear Network
plot.lpp

Plot Point Pattern on Linear Network
repairNetwork

Repair Internal Data in a Linear Network
lineardisc

Compute Disc of Given Radius in Linear Network
model.frame.lppm

Extract the Variables in a Point Process Model on a Network
plot.linim

Plot Pixel Image on Linear Network
model.images.lppm

Compute Images of Constructed Covariates
nncross.lpp

Nearest Neighbours on a Linear Network
linearpcf

Linear Pair Correlation Function
rhohat.lpp

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

Subset of Point Pattern Satisfying A Condition
plot.linnet

Plot a linear network
linearmarkconnect

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

Pairwise shortest-path distances between points on a linear network
pairs.linim

Scatterplot Matrix for Pixel Images on a Linear Network
rSwitzerlpp

Switzer-type Point Process on Linear Network
rjitter.lpp

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

Plot a Fitted Point Process Model on a Linear Network
linearpcfdot

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

Simulate Thomas Process on Linear Network
linearpcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Dot-type) for Linear Point Pattern
superimpose.lpp

Superimpose Several Point Patterns on Linear Network
terminalvertices

Terminal Vertices of a Linear Network
points.lpp

Draw Points on Existing Plot
text.lpp

Add Text Labels to Point Pattern on a Network
marks.linnet

Marks of a Network
rcelllpp

Simulate Cell Process on Linear Network
marks.lintess

Marks of a Tessellation on a Network
relrisk.lpp

Nonparametric Estimate of Spatially-Varying Relative Risk on a Network
linequad

Quadrature Scheme on a Linear Network
spatstat.linnet-internal

Internal spatstat.linnet functions
roc.lpp

Receiver Operating Characteristic for Data on a Network
linfun

Function on a Linear Network
nnfun.lpp

Nearest Neighbour Map on Linear Network
spatstat.linnet-package

The spatstat.linnet Package
rlpp

Random Points on a Linear Network
simulate.lppm

Simulate a Fitted Point Process Model on a Linear Network
mean.linim

Mean, Median, Quantiles of Pixel Values on a Linear Network
spatstat.linnet-deprecated

Deprecated spatstat.linnet functions
nnwhich.lpp

Identify Nearest Neighbours on a Linear Network
methods.linfun

Methods for Functions on Linear Network
nndist.lpp

Nearest neighbour distances on a linear network
nnfromvertex

Nearest Data Point From Each Vertex in a Network
treeprune

Prune Tree to Given Level
unstack.lpp

Separate Multiple Columns of Marks
predict.lppm

Predict Point Process Model on Linear Network
persp.linfun

Perspective View of Function on a Linear Network
persp.linim

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

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

Poisson Point Process on a Linear Network
runiflpp

Uniform Random Points on a Linear Network
thinNetwork

Remove Vertices or Segments from a Linear Network
sdr.lpp

Sufficient Dimension Reduction for a Point Pattern on a Linear Network
tile.lengths

Compute Lengths of Tiles in a Tessellation on a Network
tilenames.lintess

Names of Tiles in a Tessellation on a Network
treebranchlabels

Label Vertices of a Tree by Branch Membership
Math.linim

S3 Group Generic Methods for Images on a Linear Network
affine.linnet

Apply Geometrical Transformations to a Linear Network
Window.lpp

Extract Window of Spatial Object on a Network
Extract.linim

Extract Subset of Pixel Image on Linear Network
Replace.linim

Reset Values in Subset of Image on Linear Network
Smooth.lpp

Spatial Smoothing of Observations on a Network
addVertices

Add New Vertices to a Linear Network