Learn R Programming

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

spatstat.linnet (version 2.1-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

15,358

Version

2.1-1

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

March 28th, 2021

Functions in spatstat.linnet (2.1-1)

Window.lpp

Extract Window of Spatial Object on a Network
affine.lpp

Apply Geometrical Transformations to Point Pattern on a Linear Network
Replace.linim

Reset Values in Subset of Image on Linear Network
Extract.linim

Extract Subset of Pixel Image on Linear Network
Extract.lpp

Extract Subset of Point Pattern on Linear Network
Extract.linnet

Extract Subset of Linear Network
Math.linim

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

Apply Geometrical Transformations to a Linear Network
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
addVertices

Add New Vertices to a Linear Network
as.linim

Convert to Pixel Image on Linear Network
as.linnet.linim

Extract Linear Network from Data on a Linear Network
begins

Check Start of Character String
berman.test.lpp

Berman's Tests for Point Process Model on a Network
auc.lpp

Area Under ROC Curve for Data on a Network
as.owin.lpp

Convert Data on a Network to class owin
as.lpp

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

Convert Line Segment Pattern to Linear Network
as.linfun

Convert Data to a Function on a Linear Network
clickjoin

Interactively join vertices on a plot
as.data.frame.lintess

Convert Network Tessellation to Data Frame
branchlabelfun

Tree Branch Membership Labelling Function
connected.linnet

Connected Components of a Linear Network
chop.linnet

Divide a Linear Network into Tiles Using Infinite Lines
cdf.test.lpp

Spatial Distribution Test for Points on a Linear Network
bw.lppl

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

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

Cross Validated Bandwidth Selection for Relative Risk Estimation on a Network
connected.lpp

Connected Components of a Point Pattern on a Linear Network
densityEqualSplit

Equal-Split Algorithm for Kernel Density on a Network
density.linnet

Kernel Smoothing of Linear Network
density.lpp

Kernel Estimate of Intensity on a Linear Network
densityHeat.lpp

Kernel Density on a Network using Heat Equation
cut.lpp

Classify Points in a Point Pattern on a Network
clicklpp

Interactively Add Points on a Linear Network
data.lppm

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

Pairwise distances between two point patterns on a linear network
delaunayNetwork

Linear Network of Delaunay Triangulation or Dirichlet Tessellation
crossing.linnet

Crossing Points between Linear Network and Other Lines
deletebranch

Delete or Extract a Branch of a Tree
diameter.linnet

Diameter and Bounding Radius of a Linear Network
densityfun.lpp

Kernel Estimate of Intensity on a Linear Network as a Spatial Function
divide.linnet

Divide Linear Network at Cut Points
distfun.lpp

Distance Map on Linear Network
fitted.lppm

Fitted Intensity for Point Process on Linear Network
heatkernelapprox

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

Empirical Intensity of Point Pattern on Linear Network
intersect.lintess

Intersection of Tessellations on a Linear Network
eval.linim

Evaluate Expression Involving Pixel Images on Linear Network
envelope.lpp

Envelope for Point Patterns on Linear Network
identify.lpp

Identify Points in a Point Pattern on a Linear Network
domain.lpp

Extract the Linear Network on which Spatial Data are Defined
insertVertices

Insert New Vertices in a Linear Network
densityVoronoi.lpp

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

Kernel Estimation of Intensity on a Network using a 2D Kernel
is.connected.linnet

Determine Whether a Linear Network is Connected
is.marked.lppm

Test Whether A Point Process Model is Marked
linearKinhom

Inhomogeneous Linear K Function
linearKdot.inhom

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

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

Linear K Function
integral.linim

Integral on a Linear Network
is.multitype.lpp

Test Whether A Point Pattern on a Network is Multitype
linearmarkequal

Mark Connection Function for Multitype Point Pattern on Linear Network
is.multitype.lppm

Test Whether A Point Process Model is Multitype
is.stationary.lppm

Recognise Stationary and Poisson Point Process Models on a Network
joinVertices

Join Vertices in a Network
linearmarkconnect

Mark Connection Function for Multitype Point Pattern on Linear Network
linearKcross.inhom

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

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

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

Create a Linear Network
lineardirichlet

Dirichlet Tessellation on a Linear Network
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
linearpcfdot.inhom

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

Function on a Linear Network
linearpcfcross.inhom

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

Create Pixel Image on Linear Network
lpp

Create Point Pattern on Linear Network
lixellate

Subdivide Segments of a Network
lintess

Tessellation on a Linear Network
methods.lpp

Methods for Point Patterns on a Linear Network
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
lineardisc

Compute Disc of Given Radius in Linear Network
linearpcf

Linear Pair Correlation Function
linearpcfcross

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

Plot Pixel Image on Linear Network
plot.linnet

Plot a linear network
nndist.lpp

Nearest neighbour distances on a linear network
nnwhich.lpp

Identify Nearest Neighbours on a Linear Network
lppm

Fit Point Process Model to Point Pattern on Linear Network
nnfromvertex

Nearest Data Point From Each Vertex in a Network
nnfun.lpp

Nearest Neighbour Map on Linear Network
pairdist.lpp

Pairwise shortest-path distances between points on a linear network
model.frame.lppm

Extract the Variables in a Point Process Model on a Network
model.images.lppm

Compute Images of Constructed Covariates
pairs.linim

Scatterplot Matrix for Pixel Images on a Linear Network
model.matrix.lppm

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

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

Marks of a Tessellation on a Network
nncross.lpp

Nearest Neighbours on a Linear Network
roc.lpp

Receiver Operating Characteristic for Data on a Network
rlpp

Random Points on a Linear Network
relrisk.lpp

Nonparametric Estimate of Spatially-Varying Relative Risk on a Network
rhohat.lpp

Nonparametric Estimate of Intensity as Function of a Covariate
mean.linim

Mean, Median, Quantiles of Pixel Values on a Linear Network
rSwitzerlpp

Switzer-type Point Process on Linear Network
rcelllpp

Simulate Cell Process on Linear Network
lineartileindex

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

Quadrature Scheme on a Linear Network
superimpose.lpp

Superimpose Several Point Patterns on Linear Network
text.lpp

Add Text Labels to Point Pattern on a Network
methods.linfun

Methods for Functions on Linear Network
methods.linnet

Methods for Linear Networks
methods.linim

Methods for Images on a Linear Network
plot.lpp

Plot Point Pattern on Linear Network
plot.lintess

Plot a Tessellation on a Linear Network
simulate.lppm

Simulate a Fitted Point Process Model on a Linear Network
spatstat.linnet-package

The spatstat.linnet Package
repairNetwork

Repair Internal Data in a Linear Network
spatstat.linnet-internal

Internal spatstat.linnet functions
points.lpp

Draw Points on Existing Plot
rjitterlpp

Random Perturbation of a Point Pattern on a Network
thinNetwork

Remove Vertices or Segments from a Linear Network
tile.lengths

Compute Lengths of Tiles in a Tessellation on a Network
pseudoR2.lppm

Calculate Pseudo-R-Squared for Point Process Model on Linear Network
predict.lppm

Predict Point Process Model on Linear Network
tilenames.lintess

Names of Tiles in a Tessellation on a Network
treebranchlabels

Label Vertices of a Tree by Branch Membership
runiflpp

Uniform Random Points on a Linear Network
rpoislpp

Poisson Point Process on a Linear Network
unstack.lpp

Separate Multiple Columns of Marks
subset.lpp

Subset of Point Pattern Satisfying A Condition
treeprune

Prune Tree to Given Level