Package: spatstat.linnet 3.1-5.004

Adrian Baddeley

spatstat.linnet: Linear Networks Functionality of the 'spatstat' Family

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.

Authors:Adrian Baddeley [aut, cre, cph], Rolf Turner [aut, cph], Ege Rubak [aut, cph], Greg McSwiggan [aut, cph], Tilman Davies [ctb, cph], Mehdi Moradi [ctb, cph], Suman Rakshit [ctb, cph], Ottmar Cronie [ctb]

spatstat.linnet.pdf |spatstat.linnet.html
spatstat.linnet/json (API)

# Install spatstat.linnet in R:
install.packages('spatstat.linnet', repos = c('', ''))

Peer review:

Bug tracker:



305 exports 6 stars 5.10 score 18 dependencies 48 dependents 12.6k downloads

Last updated 7 days agofrom:a96c8c8ffcaaa491f415cd7635e6301864c86113



Readme and manuals

Help Manual

Help pageTopics
The spatstat.linnet Packagespatstat.linnet-package spatstat.linnet
Add New Vertices to a Linear NetworkaddVertices
Apply Geometrical Transformations to a Linear Networkaffine.linnet rescale.linnet rotate.linnet scalardilate.linnet shift.linnet
Apply Geometrical Transformations to Point Pattern on a Linear Networkaffine.lpp rescale.lpp rotate.lpp scalardilate.lpp shift.lpp
ANOVA for Fitted Point Process Models on Linear Networkanova.lppm
Convert Network Tessellation to Data
Convert Data to a Function on a Linear Networkas.linfun as.linfun.linim as.linfun.lintess
Convert to Pixel Image on Linear Networkas.linim as.linim.default as.linim.linfun as.linim.linim
Extract Linear Network from Data on a Linear Networkas.linnet.linfun as.linnet.linim as.linnet.lintess as.linnet.lpp
Convert Line Segment Pattern to Linear Networkas.linnet.psp
Convert Data to a Point Pattern on a Linear Networkas.lpp
Convert Data on a Network to class owinas.owin.lpp as.owin.lppm
Area Under ROC Curve for Data on a Networkauc.lpp auc.lppm
Check Start of Character Stringbegins
Berman's Tests for Point Process Model on a Networkberman.test.lpp berman.test.lppm
Tree Branch Membership Labelling Functionbranchlabelfun
Likelihood Cross Validation Bandwidth Selection for Kernel Density on a Linear Networkbw.lppl
Cross Validated Bandwidth Selection for Relative Risk Estimation on a Networkbw.relrisk.lpp
Cross Validated Bandwidth Selection for Voronoi Estimator of Intensity on a Networkbw.voronoi
Spatial Distribution Test for Points on a Linear Networkcdf.test.lpp cdf.test.lppm
Divide a Linear Network into Tiles Using Infinite Lineschop.linnet
Interactively join vertices on a plotclickjoin
Interactively Add Points on a Linear Networkclicklpp
Connected Components of a Linear Networkconnected.linnet
Connected Components of a Point Pattern on a Linear Networkconnected.lpp
Pairwise distances between two point patterns on a linear networkcrossdist.lpp
Crossing Points between Linear Network and Other Linescrossing.linnet
Classify Points in a Point Pattern on a Networkcut.lpp
Extract Original Data from a Fitted Point Process Model on a Networkdata.lppm
Linear Network of Delaunay Triangulation or Dirichlet TessellationdelaunayNetwork dirichletNetwork
Delete or Extract a Branch of a Treedeletebranch deletebranch.linnet deletebranch.lpp extractbranch extractbranch.linnet extractbranch.lpp
Kernel Smoothing of Linear Networkdensity.linnet
Kernel Estimate of Intensity on a Linear Networkdensity.lpp density.splitppx
Equal-Split Algorithm for Kernel Density on a NetworkdensityEqualSplit
Kernel Estimate of Intensity on a Linear Network as a Spatial Functiondensityfun.lpp
Kernel Density on a Network using Heat EquationdensityHeat.lpp
Kernel Estimation of Intensity on a Network using a 2D KerneldensityQuick.lpp
Intensity Estimate of Point Pattern on Linear Network Using Voronoi-Dirichlet TessellationdensityVoronoi.lpp
Diameter and Bounding Radius of a Linear Networkboundingradius.linnet diameter.linnet
Distance Map on Linear Networkdistfun.lpp
Distance Map of Point Pattern on Linear Networkdistmap.lpp
Divide Linear Network at Cut Pointsdivide.linnet
Extract the Linear Network on which Spatial Data are Defineddomain.linfun domain.lintess domain.lpp domain.lppm
Envelope for Point Patterns on Linear Networkenvelope.lpp envelope.lppm
Evaluate Expression Involving Pixel Images on Linear Networkeval.linim
Extract Subset of Pixel Image on Linear Network[.linim
Extract Subset of Linear Network[.linnet
Extract Subset of Point Pattern on Linear Network[.lpp
Fitted Intensity for Point Process on Linear Networkfitted.lppm
Approximation to Heat Kernel on Linear Network at Source Pointheatkernelapprox
Identify Points in a Point Pattern on a Linear Networkidentify.lpp
Insert New Vertices in a Linear NetworkinsertVertices
Integral on a Linear Networkintegral.linfun integral.linim
Empirical Intensity of Point Pattern on Linear Networkintensity.lpp
Intersection of Tessellations on a Linear Networkintersect.lintess
Determine Whether a Linear Network is Connectedis.connected.linnet
Test Whether A Point Process Model is Markedis.marked.lppm
Test Whether A Point Pattern on a Network is Multitypeis.multitype.lpp
Test Whether A Point Process Model is Multitypeis.multitype.lppm
Recognise Stationary and Poisson Point Process Models on a Networkis.poisson.lppm is.stationary.lppm
Join Vertices in a NetworkjoinVertices
Dirichlet Tessellation on a Linear Networklineardirichlet
Compute Disc of Given Radius in Linear Networkcountends lineardisc lineardisclength
Inhomogeneous Linear J-function for Point Processes on Linear NetworkslinearJinhom
Linear K FunctionlinearK
Multitype K Function (Cross-type) for Linear Point PatternlinearKcross
Inhomogeneous multitype K Function (Cross-type) for Linear Point PatternlinearKcross.inhom
Multitype K Function (Dot-type) for Linear Point PatternlinearKdot
Inhomogeneous multitype K Function (Dot-type) for Linear Point PatternlinearKdot.inhom
Linear K Function Using Euclidean DistancelinearKEuclid
Inhomogeneous Linear K Function Based on Euclidean DistanceslinearKEuclidInhom
Inhomogeneous Linear K FunctionlinearKinhom
Mark Connection Function for Multitype Point Pattern on Linear Networklinearmarkconnect
Mark Connection Function for Multitype Point Pattern on Linear Networklinearmarkequal
Linear Pair Correlation Functionlinearpcf
Multitype Pair Correlation Function (Cross-type) for Linear Point Patternlinearpcfcross
Inhomogeneous Multitype Pair Correlation Function (Cross-type) for Linear Point Patternlinearpcfcross.inhom
Multitype Pair Correlation Function (Dot-type) for Linear Point Patternlinearpcfdot
Inhomogeneous Multitype Pair Correlation Function (Dot-type) for Linear Point Patternlinearpcfdot.inhom
Linear Pair Correlation Function Using Euclidean DistancelinearpcfEuclid
Inhomogeneous Linear Pair Correlation Function Based on Euclidean DistanceslinearpcfEuclidInhom
Inhomogeneous Linear Pair Correlation Functionlinearpcfinhom
Determine Which Tile Contains Each Given Point on a Linear Networklineartileindex
Quadrature Scheme on a Linear Networklinequad
Function on a Linear Networklinfun
Create Pixel Image on Linear Networklinim
Create a Linear Networklinnet
Tessellation on a Linear Networklintess
Subdivide Segments of a Networklixellate
Create Point Pattern on Linear Networklpp
Fit Point Process Model to Point Pattern on Linear Networklppm lppm.formula lppm.lpp
Marks of a Networkmarks.linnet marks<-.linnet
Marks of a Tessellation on a Networkmarks.lintess marks<-.lintess unmark.lintess
S3 Group Generic Methods for Images on a Linear NetworkComplex.linim Math.linim Ops.linim Summary.linim
Mean, Median, Quantiles of Pixel Values on a Linear Networkmean.linim median.linim quantile.linim quantilefun.linim
Methods for Functions on Linear as.function.linfun as.owin.linfun methods.linfun plot.linfun print.linfun summary.linfun
Methods for Images on a Linear Networkaffine.linim methods.linim print.linim scalardilate.linim shift.linim summary.linim
Methods for Linear Networksas.linnet as.linnet.linnet as.owin.linnet as.psp.linnet methods.linnet nsegments.linnet nvertices.linnet pixellate.linnet print.linnet summary.linnet unitname.linnet unitname<-.linnet vertexdegree vertices.linnet volume.linnet Window.linnet
Methods for Point Patterns on a Linear Networkas.ppp.lpp as.psp.lpp marks<-.lpp methods.lpp nsegments.lpp print.lpp print.summary.lpp summary.lpp unitname.lpp unitname<-.lpp unmark.lpp
Methods for Fitted Point Process Models on a Linear Networkas.linnet.lppm coef.lppm deviance.lppm emend.lppm extractAIC.lppm formula.lppm logLik.lppm methods.lppm nobs.lppm print.lppm response.lppm summary.lppm terms.lppm update.lppm valid.lppm vcov.lppm
Extract the Variables in a Point Process Model on a Networkmodel.frame.lppm
Compute Images of Constructed Covariatesmodel.images.lppm
Extract Design Matrix from Point Process Model on a Networkmodel.matrix.lppm
Nearest Neighbours on a Linear Networknncross.lpp
Nearest neighbour distances on a linear networknndist.lpp
Nearest Data Point From Each Vertex in a Networknnfromvertex
Nearest Neighbour Map on Linear Networknnfun.lpp
Identify Nearest Neighbours on a Linear Networknnwhich.lpp
Pairwise shortest-path distances between points on a linear networkpairdist.lpp
Scatterplot Matrix for Pixel Images on a Linear Networkpairs.linim
Perspective View of Function on a Linear Networkpersp.linfun
Perspective View of Pixel Image on a Linear Networkpersp.linim
Plot Pixel Image on Linear Networkplot.linim
Plot a linear networkplot.linnet
Plot a Tessellation on a Linear Networkplot.lintess
Plot Point Pattern on Linear Networkplot.lpp
Plot a Fitted Point Process Model on a Linear Networkplot.lppm
Draw Points on Existing Plotpoints.lpp
Predict Point Process Model on Linear Networkpredict.lppm
Calculate Pseudo-R-Squared for Point Process Model on Linear NetworkpseudoR2.lppm
Simulate Cell Process on Linear Networkrcelllpp
Nonparametric Estimate of Spatially-Varying Relative Risk on a Networkrelrisk.lpp
Repair Internal Data in a Linear NetworkrepairNetwork
Reset Values in Subset of Image on Linear Network[<-.linim
Nonparametric Estimate of Intensity as Function of a Covariaterhohat.lpp rhohat.lppm
Random Perturbation of a Point Pattern on a Networkrjitter.lpp
Random Points on a Linear Networkrlpp
Receiver Operating Characteristic for Data on a Networkroc.lpp roc.lppm
Poisson Point Process on a Linear Networkrpoislpp
Switzer-type Point Process on Linear NetworkrSwitzerlpp
Simulate Thomas Process on Linear NetworkrThomaslpp
Uniform Random Points on a Linear Networkruniflpp
Sufficient Dimension Reduction for a Point Pattern on a Linear Networksdr.lpp
Simulate a Fitted Point Process Model on a Linear Networksimulate.lppm
Spatial Smoothing of Observations on a NetworkSmooth.lpp
Subset of Point Pattern Satisfying A Conditionsubset.lpp
Superimpose Several Point Patterns on Linear Networksuperimpose.lpp
Terminal Vertices of a Linear Networkterminalvertices
Add Text Labels to Point Pattern on a Networktext.lpp
Remove Vertices or Segments from a Linear NetworkthinNetwork
Compute Lengths of Tiles in a Tessellation on a Networktile.lengths
Names of Tiles in a Tessellation on a Networktilenames.lintess tilenames<-.lintess
Label Vertices of a Tree by Branch Membershiptreebranchlabels
Prune Tree to Given Leveltreeprune
Separate Multiple Columns of Marksunstack.lintess unstack.lpp
Extract Window of Spatial Object on a NetworkWindow.lpp Window.lppm