Learn R Programming

spatstat.linnet (version 3.1-0)

spatstat.linnet-package: The spatstat.linnet Package

Description

The spatstat.linnet package belongs to the spatstat family of packages. It contains the functionality for analysing spatial data on a linear network.

Arguments

Structure of the spatstat family

The orginal spatstat package grew to be very large. It has now been divided into several sub-packages:

  • spatstat.utils containing basic utilities

  • spatstat.sparse containing linear algebra utilities

  • spatstat.data containing datasets

  • spatstat.geom containing geometrical objects and geometrical operations

  • spatstat.explore containing the main functionality for exploratory and non-parametric analysis of spatial data

  • spatstat.model containing the main functionality for statistical modelling and inference for spatial data

  • spatstat.linnet containing functions for spatial data on a linear network

  • spatstat, which simply loads the other sub-packages listed above, and provides documentation.

When you install spatstat, these sub-packages are also installed. Then if you load the spatstat package by typing library(spatstat), the other sub-packages listed above will automatically be loaded or imported. For an overview of all the functions available in these sub-packages, see the help file for spatstat in the spatstat package,

Additionally there are several extension packages:

  • spatstat.gui for interactive graphics

  • spatstat.local for local likelihood (including geographically weighted regression)

  • spatstat.Knet for additional, computationally efficient code for linear networks

  • spatstat.sphere (under development) for spatial data on a sphere, including spatial data on the earth's surface

The extension packages must be installed separately and loaded explicitly if needed. They also have separate documentation.

Overview of functionality

Here is a list of the main functionality in spatstat.linnet.

Point patterns on a linear network

An object of class "linnet" represents a linear network (for example, a road network).

linnetcreate a linear network
clickjoininteractively join vertices in network
spatstat.gui::iplot.linnetinteractively plot network
simplenetsimple example of network
lineardiscdisc in a linear network
delaunayNetworknetwork of Delaunay triangulation
dirichletNetworknetwork of Dirichlet edges
methods.linnetmethods for linnet objects
vertices.linnetnodes of network
joinVerticesjoin existing vertices in a network
insertVerticesinsert new vertices at positions along a network
addVerticesadd new vertices, extending a network
thinNetworkremove vertices or lines from a network
repairNetworkrepair internal format
pixellate.linnetapproximate by pixel image

An object of class "lpp" represents a point pattern on a linear network (for example, road accidents on a road network).

lppcreate a point pattern on a linear network
methods.lppmethods for lpp objects
subset.lppmethod for subset
rpoislppsimulate Poisson points on linear network
runiflppsimulate random points on a linear network
chicagoChicago crime data
dendriteDendritic spines data
spidersSpider webs on mortar lines of brick wall

Summary statistics for a point pattern on a linear network:

These are for point patterns on a linear network (class lpp). For unmarked patterns:

linearK\(K\) function on linear network
linearKinhominhomogeneous \(K\) function on linear network
linearpcfpair correlation function on linear network
linearpcfinhominhomogeneous pair correlation on linear network

For multitype patterns:

linearKcross\(K\) function between two types of points
linearKdot\(K\) function from one type to any type
linearKcross.inhomInhomogeneous version of linearKcross
linearKdot.inhomInhomogeneous version of linearKdot
linearmarkconnectMark connection function on linear network
linearmarkequalMark equality function on linear network
linearpcfcrossPair correlation between two types of points
linearpcfdotPair correlation from one type to any type
linearpcfcross.inhomInhomogeneous version of linearpcfcross
linearpcfdot.inhomInhomogeneous version of linearpcfdot

Related facilities:

pairdist.lppdistances between pairs
crossdist.lppdistances between pairs
nndist.lppnearest neighbour distances
nncross.lppnearest neighbour distances
nnwhich.lppfind nearest neighbours
nnfun.lppfind nearest data point
density.lppkernel smoothing estimator of intensity
distfun.lppdistance transform
envelope.lppsimulation envelopes
rpoislppsimulate Poisson points on linear network
runiflppsimulate random points on a linear network

It is also possible to fit point process models to lpp objects.

Point process models on a linear network:

An object of class "lpp" represents a pattern of points on a linear network. Point process models can also be fitted to these objects. Currently only Poisson models can be fitted.

lppmpoint process model on linear network
anova.lppmanalysis of deviance for
point process model on linear network
envelope.lppmsimulation envelopes for
point process model on linear network
fitted.lppmfitted intensity values
predict.lppmmodel prediction on linear network
linimpixel image on linear network
plot.linimplot a pixel image on linear network
eval.linimevaluate expression involving images
linfunfunction defined on linear network
methods.linfunconversion facilities

Licence

This library and its documentation are usable under the terms of the "GNU General Public License", a copy of which is distributed with the package.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.

Acknowledgements

Ottmar Cronie, Tilman Davies, Greg McSwiggan and Suman Rakshit made substantial contributions of code.

Details

spatstat is a family of R packages for the statistical analysis of spatial data. Its main focus is the analysis of spatial patterns of points in two-dimensional space.

The original spatstat package has now been split into several sub-packages.

This sub-package spatstat.linnet contains the user-level functions from spatstat that are concerned with spatial data on a linear network.