Learn R Programming

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

spatstat (version 1.28-1)

Spatial Point Pattern analysis, model-fitting, simulation, tests

Description

A package for analysing spatial data, mainly Spatial Point Patterns, including multitype/marked points and spatial covariates, in any two-dimensional spatial region. Also supports three-dimensional point patterns, and space-time point patterns in any number of dimensions. Contains over 1000 functions for plotting spatial data, exploratory data analysis, model-fitting, simulation, spatial sampling, model diagnostics, and formal inference. Data types include point patterns, line segment patterns, spatial windows, pixel images and tessellations. Exploratory methods include K-functions, nearest neighbour distance and empty space statistics, Fry plots, pair correlation function, kernel smoothed intensity, relative risk estimation with cross-validated bandwidth selection, mark correlation functions, segregation indices, mark dependence diagnostics etc. Point process models can be fitted to point pattern data using functions ppm, kppm, slrm similar to glm. Models may include dependence on covariates, interpoint interaction, cluster formation and dependence on marks. Fitted models can be simulated automatically. Also provides facilities for formal inference (such as chi-squared tests) and model diagnostics (including simulation envelopes, residuals, residual plots and Q-Q plots).

Copy Link

Version

Install

install.packages('spatstat')

Monthly Downloads

17,668

Version

1.28-1

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

June 29th, 2012

Functions in spatstat (1.28-1)

Kmeasure

Reduced Second Moment Measure
Kdot

Multitype K Function (i-to-any)
envelope.envelope

Recompute Envelopes
Kmulti

Marked K-Function
Softcore

The Soft Core Point Process Model
as.im

Convert to Pixel Image
Kcross

Multitype K Function (Cross-type)
compatible.fv

Test Whether Function Objects Are Compatible
StraussHard

The Strauss / Hard Core Point Process Model
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
Lcross.inhom

Inhomogeneous Cross Type L Function
Saturated

Saturated Pairwise Interaction model
complement.owin

Take Complement of a Window
LennardJones

The Lennard-Jones Potential
Gmulti

Marked Nearest Neighbour Distance Function
Extract.fasp

Extract Subset of Function Array
Kcross.inhom

Inhomogeneous Cross K Function
Extract.im

Extract Subset of Image
closing

Morphological Closing
as.psp

Convert Data To Class psp
DiggleGratton

Diggle-Gratton model
Emark

Diagnostics for random marking
Kmodel

K function of a model
Fiksel

The Fiksel Interaction
distmap

Distance Map
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
Geyer

Geyer's Saturation Point Process Model
compatible.im

Test Whether Pixel Images Are Compatible
as.matrix.owin

Convert Pixel Image to Matrix
Kcom

Model Compensator of K Function
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
Jmulti

Marked J Function
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
Strauss

The Strauss Point Process Model
Jcross

Multitype J Function (i-to-j)
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
by.ppp

Apply a Function to a Point Pattern Broken Down by Factor
Gres

Residual G Function
inside.owin

Test Whether Points Are Inside A Window
bdist.pixels

Distance to Boundary of Window
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
betacells

Beta Ganglion Cells in Cat Retina
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
Kmulti.inhom

Inhomogeneous Marked K-Function
amacrine

Hughes' Amacrine Cell Data
Kest

K-function
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
ippm

Optimise Irregular Trend Parameters in Point Process Model
Extract.psp

Extract Subset of Line Segment Pattern
F3est

Empty Space Function of a Three-Dimensional Point Pattern
as.owin

Convert Data To Class owin
Extract.lpp

Extract Subset of Point Pattern on Linear Network
cut.im

Convert Pixel Image from Numeric to Factor
plot.im

Plot a Pixel Image
border

Border Region of a Window
as.polygonal

Convert a Window to a Polygonal Window
collapse.fv

Collapse Several Function Tables into One
fasp.object

Function Arrays for Spatial Patterns
concatxy

Concatenate x,y Coordinate Vectors
Lcross

Multitype L-function (cross-type)
as.matrix.im

Convert Pixel Image to Matrix or Array
demopat

Artificial Data Point Pattern
as.interact

Extract Interaction Structure
clickppp

Interactively Add Points
convolve.im

Convolution of Pixel Images
chorley

Chorley-Ribble Cancer Data
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
diameter

Diameter of an Object
is.im

Test Whether An Object Is A Pixel Image
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
Kest.fft

K-function using FFT
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
Lest

L-function
flu

Influenza Virus Proteins
is.ppm

Test Whether An Object Is A Fitted Point Process Model
corners

Corners of a rectangle
dilated.areas

Areas of Morphological Dilations
as.rectangle

Window Frame
linnet

Create a Linear Network
rhohat

Smoothing Estimate of Covariate Transformation
localK

Neighbourhood density function
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
dfbetas.ppm

Parameter influence measure
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
clarkevans

Clark and Evans Aggregation Index
centroid.owin

Centroid of a window
intersect.tess

Intersection of Two Tessellations
eem

Exponential Energy Marks
gridcentres

Rectangular grid of points
Kdot.inhom

Inhomogeneous Multitype K Dot Function
clarkevans.test

Clark and Evans Test
rMosaicField

Mosaic Random Field
Pairwise

Generic Pairwise Interaction model
compatible.fasp

Test Whether Function Arrays Are Compatible
copper

Berman-Huntington points and lines data
japanesepines

Japanese Pines Point Pattern
coef.ppm

Coefficients of Fitted Point Process Model
localpcf

Local pair correlation function
pairdist.pp3

Pairwise distances in Three Dimensions
bounding.box.xy

Convex Hull of Points
nsegments

Number of Line Segments in a Line Segment Pattern
integral.im

Integral of a Pixel Image
clickjoin

Interactively join vertices on a plot
heather

Diggle's Heather Data
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
solutionset

Evaluate Logical Expression Involving Pixel Images and Return Region Where Expression is True
Hardcore

The Hard Core Point Process Model
Tstat

Third order summary statistic
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
convexhull.xy

Convex Hull of Points
crossdist.default

Pairwise distances between two different sets of points
logLik.slrm

Loglikelihood of Spatial Logistic Regression
box3

Three-Dimensional Box
infline

Infinite Straight Lines
as.function.fv

Convert Function Value Table to Function
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
anova.ppm

ANOVA for Fitted Point Process Models
BadGey

Hybrid Geyer Point Process Model
is.multitype.ppp

Test Whether A Point Pattern is Multitype
cut.ppp

Classify Points in a Point Pattern
Gest

Nearest Neighbour Distance Function G
eval.fv

Evaluate Expression Involving Functions
logLik.ppm

Log Likelihood and AIC for Point Process Model
Hest

Spherical Contact Distribution Function
lansing

Lansing Woods Point Pattern
OrdThresh

Ord's Interaction model
diameter.box3

Geometrical Calculations for Three-Dimensional Box
plot.envelope

Plot a Simulation Envelope
Gcom

Model Compensator of Nearest Neighbour Function
clickpoly

Interactively Define a Polygon
lgcp.estpcf

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
model.depends

Identify Covariates Involved in each Model Term
fv.object

Function Value Table
flipxy

Exchange X and Y Coordinates
is.marked.ppp

Test Whether A Point Pattern is Marked
nearestsegment

Find Line Segment Nearest to Each Point
discpartarea

Area of Part of Disc
pixellate.owin

Convert Window to Pixel Image
blur

Apply Gaussian Blur to a Pixel Image
areaLoss

Difference of Disc Areas
pcf

Pair Correlation Function
nndist.pp3

Nearest neighbour distances in three dimensions
lut

Lookup Tables
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
intensity.ppp

Empirical Intensity of Point Pattern
rescale.owin

Convert Window to Another Unit of Length
reach

Interaction Distance of a Point Process
crossdist.ppp

Pairwise distances between two different point patterns
boxx

Multi-Dimensional Box
density.ppp

Kernel Smoothed Intensity of Point Pattern
Ord

Generic Ord Interaction model
smooth.ppp

Spatial smoothing of observations at irregular points
compatible

Test Whether Objects Are Compatible
nncross

Nearest Neighbours Between Two Patterns
pool.rat

Pool Data from Several Ratio Objects
AreaInter

The Area Interaction Point Process Model
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
persp.im

Perspective Plot of Pixel Image
spatstat-internal

Internal spatstat functions
eval.im

Evaluate Expression Involving Pixel Images
pcfdot

Multitype pair correlation function (i-to-any)
im

Create a Pixel Image Object
affine.ppp

Apply Affine Transformation To Point Pattern
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
Extract.tess

Extract or Replace Subset of Tessellation
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
plot.plotppm

Plot a plotppm Object Created by plot.ppm
erosion

Morphological Erosion
connected

Connected components of an image or window
localKinhom

Inhomogeneous Neighbourhood Density Function
envelope

Simulation Envelopes of Summary Function
envelope.lpp

Envelope for Point Patterns on Linear Network
bounding.box

Bounding Box of a Window or Point Pattern
default.dummy

Generate a Default Pattern of Dummy Points
affine.owin

Apply Affine Transformation To Window
bind.fv

Combine Function Value Tables
allstats

Calculate four standard summary functions of a point pattern.
ants

Harkness-Isham ants' nests data
im.object

Class of Images
inforder.family

Infinite Order Interaction Family
Jdot

Multitype J Function (i-to-any)
fryplot

Fry Plot of Point Pattern
hamster

Aherne's hamster tumour data
contour.listof

Plot a List of Things
clip.infline

Intersect Infinite Straight Lines with a Window
gorillas

Gorilla Nesting Sites
is.empty

Test Whether An Object Is Empty
coords

Extract or Change Coordinates of a Spatial or Spatiotemporal Point Pattern
rescale

Convert dataset to another unit of length
methods.distfun

Methods for Distance Functions
hist.im

Histogram of Pixel Values in an Image
letterR

Window in Shape of Letter R
distmap.ppp

Distance Map of Point Pattern
markcorrint

Mark Correlation Integral
pixellate.psp

Convert Line Segment Pattern to Pixel Image
ppm

Fit Point Process Model to Data
convexhull

Convex Hull
eval.fasp

Evaluate Expression Involving Function Arrays
Ldot.inhom

Inhomogeneous Multitype L Dot Function
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
lgcp.estK

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
is.stationary

Recognise Stationary and Poisson Point Process Models
influence.ppm

Influence Measure for Spatial Point Process Model
vargamma.estK

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
rMosaicSet

Mosaic Random Set
intensity.ppm

Intensity of Fitted Point Process Model
is.convex

Test Whether a Window is Convex
project2segment

Move Point To Nearest Line
pairdist.lpp

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

Reflect In Origin
methods.slrm

Methods for Spatial Logistic Regression Models
levelset

Level Set of a Pixel Image
rsyst

Simulate systematic random point pattern
pairdist.ppx

Pairwise Distances in Any Dimensions
layered

Create List of Plotting Layers
crossdist

Pairwise distances
bdist.tiles

Distance to Boundary of Window
rotate

Rotate
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
redwood

California Redwoods Point Pattern (Ripley's Subset)
lohboot

Bootstrap Confidence Bands for Summary Function
identify.psp

Identify Segments in a Line Segment Pattern
shift.ppp

Apply Vector Translation To Point Pattern
pppdist

Distance Between Two Point Patterns
slrm

Spatial Logistic Regression
simdat

Simulated Point Pattern
Gfox

Foxall's Distance Functions
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
Triplets

The Triplet Point Process Model
intensity

Intensity of a Dataset or a Model
summary.psp

Summary of a Line Segment Pattern Dataset
lppm

Fit Point Process Model to Point Pattern on Linear Network
hyperframe

Hyper Data Frame
print.owin

Print Brief Details of a Spatial Window
Iest

Estimate the I-function
is.marked

Test Whether Marks Are Present
exactMPLEstrauss

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
pcfinhom

Inhomogeneous Pair Correlation Function
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
as.hyperframe

Convert Data to Hyperframe
harmonise.im

Make Pixel Images Compatible
gpc2owin

Convert Polygonal Region into Different Format
colourmap

Colour Lookup Tables
Extract.msr

Extract Subset of Signed or Vector Measure
opening

Morphological Opening
LambertW

Lambert's W Function
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
npfun

Dummy Function Returns Number of Points
stieltjes

Compute Integral of Function Against Cumulative Distribution
edges2triangles

List Triangles in a Graph
murchison

Murchison gold deposits
as.data.frame.im

Convert Pixel Image to Data Frame
colourtools

Convert and Compare Colours in Different Formats
square

Square Window
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
formula.ppm

Model Formulae for Gibbs Point Process Models
nnwhich

Nearest neighbour
fitted.ppm

Fitted Conditional Intensity for Point Process Model
Replace.im

Reset Values in Subset of Image
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
pairwise.family

Pairwise Interaction Process Family
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
linearpcf

Linear Pair Correlation Function
rjitter

Random Perturbation of a Point Pattern
bramblecanes

Hutchings' Bramble Canes data
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
affine.im

Apply Affine Transformation To Pixel Image
pool

Pool Data
areaGain

Difference of Disc Areas
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
summary.im

Summarizing a Pixel Image
lpp

Create Point Pattern on Linear Network
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
scalardilate

Apply Scalar Dilation
spatstat.options

Internal Options in Spatstat Package
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
split.im

Divide Image Into Sub-images
pcf.ppp

Pair Correlation Function of Point Pattern
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
owin.object

Class owin
tile.areas

Compute Areas of Tiles in a Tessellation
predict.kppm

Prediction from a Fitted Cluster Point Process Model
expand.owin

Apply Expansion Rule
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
pixellate

Convert Spatial Object to Pixel Image
shift.owin

Apply Vector Translation To Window
plot.tess

Plot a tessellation
plot.owin

Plot a Spatial Window
urkiola

Urkiola Woods Point Pattern
tiles

Extract List of Tiles in a Tessellation
reduced.sample

Reduced Sample Estimator using Histogram Data
rVarGamma

Simulate Neyman-Scott Point Process with Variance Gamma cluster kernel
plot.colourmap

Plot a Colour Map
rpoislpp

Poisson Point Process on a Linear Network
pixelquad

Quadrature Scheme Based on Pixel Grid
Extract.fv

Extract Subset of Function Values
rpoisline

Generate Poisson Random Line Process
Jest

Estimate the J-function
as.tess

Convert Data To Tessellation
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
rshift.psp

Randomly Shift a Line Segment Pattern
plot.bermantest

Plot Result of Berman Test
rmh.ppm

Simulate from a Fitted Point Process Model
summary.listof

Summary of a List of Things
ripras

Estimate window from points alone
superimpose

Superimpose Several Geometric Patterns
with.fv

Evaluate an Expression in a Function Table
dirichlet

Dirichlet Tessellation of Point Pattern
pool.fasp

Pool Data from Several Function Arrays
pixellate.ppp

Convert Point Pattern to Pixel Image
spruces

Spruces Point Pattern
rStraussHard

Perfect Simulation of the Strauss-Hardcore Process
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
plot.splitppp

Plot a List of Point Patterns
pointsOnLines

Place Points Evenly Along Specified Lines
Extract.listof

Extract or Replace Subset of a List of Things
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
anemones

Beadlet Anemones Data
pppmatching.object

Class of Point Matchings
markvario

Mark Variogram
distmap.owin

Distance Map of Window
simplenet

Simple Example of Linear Network
leverage.ppm

Leverage Measure for Spatial Point Process Model
valid.ppm

Check Whether Point Process Model is Valid
rMatClust

Simulate Matern Cluster Process
markconnect

Mark Connection Function
nnwhich.pp3

Nearest neighbours in three dimensions
methods.pp3

Methods for three-dimensional point patterns
plot.linim

Plot Pixel Image on Linear Network
marks

Marks of a Point Pattern
matchingdist

Distance for a Point Pattern Matching
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
rmpoint

Generate N Random Multitype Points
affine

Apply Affine Transformation
is.owin

Test Whether An Object Is A Window
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
disc

Circular Window
plot.msr

Plot a Signed or Vector-Valued Measure
model.images

Compute Images of Constructed Covariates
midpoints.psp

Midpoints of Line Segment Pattern
endpoints.psp

Endpoints of Line Segment Pattern
pcf.fv

Pair Correlation Function obtained from K Function
pcf.fasp

Pair Correlation Function obtained from array of K functions
Extract.ppx

Extract Subset of Multidimensional Point Pattern
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
plot.ppm

plot a Fitted Point Process Model
diameter.owin

Diameter of a Window
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
plot.listof

Plot a List of Things
update.ppm

Update a Fitted Point Process Model
ppx

Multidimensional Space-Time Point Pattern
plot.kppm

Plot a fitted cluster point process
plot.psp

plot a Spatial Line Segment Pattern
quadrat.test

Chi-Squared Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
pairdist.ppp

Pairwise distances
summary.ppp

Summary of a Point Pattern Dataset
methods.lpp

Methods for Point Patterns on a Linear Network
harmonic

Basis for Harmonic Functions
angles.psp

Orientation Angles of Line Segments
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
msr

Signed or Vector-Valued Measure
rthin

Random Thinning
rHardcore

Perfect Simulation of the Hardcore Process
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
lengths.psp

Lengths of Line Segments
by.im

Apply Function to Image Broken Down by Factor
ewcdf

Weighted Empirical Cumulative Distribution Function
plot.linnet

Plot a linear network
profilepl

Profile Maximum Pseudolikelihood
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
latest.news

Print News About Latest Version of Package
rpoint

Generate N Random Points
plot.pp3

Plot a three-dimensional point pattern
Poisson

Poisson Point Process Model
distmap.psp

Distance Map of Line Segment Pattern
linearKinhom

Inhomogeneous Linear K Function
bei

Tropical rain forest trees
spatstat-deprecated

Deprecated spatstat functions
update.kppm

Update a Fitted Cluster Point Process Model
as.box3

Convert Data to Three-Dimensional Box
ord.family

Ord Interaction Process Family
pairs.im

Scatterplot Matrix for Pixel Images
rlabel

Random Re-Labelling of Point Pattern
rMaternI

Simulate Matern Model I
varblock

Estimate Variance of Summary Statistic by Subdivision
runifpoint

Generate N Uniform Random Points
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
Extract.quad

Subset of Quadrature Scheme
rshift

Random Shift
shift.psp

Apply Vector Translation To Line Segment Pattern
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
is.ppp

Test Whether An Object Is A Point Pattern
default.expand

Default Expansion Rule for Simulation of Model
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
rpoislinetess

Poisson Line Tessellation
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
rThomas

Simulate Thomas Process
nearest.raster.point

Find Pixel Nearest to a Given Point
owin

Create a Window
smooth.msr

Smooth a Signed or Vector-Valued Measure
mincontrast

Method of Minimum Contrast
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
perimeter

Perimeter Length of Window
plot.ppp

plot a Spatial Point Pattern
setcov

Set Covariance of a Window
miplot

Morishita Index Plot
unitname

Name for Unit of Length
plot.slrm

Plot a Fitted Spatial Logistic Regression
rotate.owin

Rotate a Window
pppmatching

Create a Point Matching
kppm

Fit Cluster or Cox Point Process Model
vargamma.estpcf

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
triplet.family

Triplet Interaction Family
rotate.ppp

Rotate a Point Pattern
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
density.psp

Kernel Smoothing of Line Segment Pattern
nndist.psp

Nearest neighbour distances between line segments
npoints

Number of Points in a Point Pattern
as.mask

Pixel Image Approximation of a Window
quadratresample

Resample a Point Pattern by Resampling Quadrats
methods.linnet

Methods for Linear Networks
nnwhich.ppx

Nearest Neighbours in Any Dimensions
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
spokes

Spokes pattern of dummy points
split.ppx

Divide Multidimensional Point Pattern into Sub-patterns
trim.rectangle

Cut margins from rectangle
quantile.im

Sample Quantiles of Pixel Image
as.ppp

Convert Data To Class ppp
pairdist.psp

Pairwise distances between line segments
pairdist

Pairwise distances
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
finpines

Pine saplings in Finland.
lurking

Lurking variable plot
distfun

Distance Map as a Function
Extract.ppp

Extract or Replace Subset of Point Pattern
rmpoispp

Generate Multitype Poisson Point Pattern
nbfires

Point Patterns of New Brunswick Forest Fires
summary.ppm

Summarizing a Fitted Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
idw

Inverse-distance weighted smoothing of observations at irregular points
affine.psp

Apply Affine Transformation To Line Segment Pattern
raster.x

Cartesian Coordinates for a Pixel Raster
rstrat

Simulate Stratified Random Point Pattern
unnormdensity

Weighted kernel smoother
is.marked.ppm

Test Whether A Point Process Model is Marked
compareFit

Residual Diagnostics for Multiple Fitted Models
rPoissonCluster

Simulate Poisson Cluster Process
simplify.owin

Approximate a Polygon by a Simpler Polygon
summary.splitppp

Summary of a Split Point Pattern
suffstat

Sufficient Statistic of Point Process Model
circumradius

Circumradius and Diameter of a Linear Network
bronzefilter

Bronze gradient filter data
append.psp

Combine Two Line Segment Patterns
ppp

Create a Point Pattern
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
Kinhom

Inhomogeneous K-function
psp.object

Class of Line Segment Patterns
multiplicity.ppp

Count Multiplicity of Duplicate Points
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
gridweights

Compute Quadrature Weights Based on Grid Counts
plot.leverage.ppm

Plot Leverage Function
plot.quad

plot a Spatial Quadrature Scheme
pairsat.family

Saturated Pairwise Interaction Point Process Family
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
rat

Ratio object
volume

Volume of an Object
quad.object

Class of Quadrature Schemes
methods.units

Methods for Units
Kscaled

Locally Scaled K-function
scaletointerval

Rescale Data to Lie Between Specified Limits
deltametric

Delta Metric
runifpointOnLines

Generate N Uniform Random Points On Line Segments
print.ppm

Print a Fitted Point Process Model
shift

Apply Vector Translation
runifdisc

Generate N Uniform Random Points in a Disc
Ldot

Multitype L-function (i-to-any)
linim

Create Pixel Image on Linear Network
marks.psp

Marks of a Line Segment Pattern
Extract.splitppp

Extract or Replace Sub-Patterns
Fest

Estimate the empty space function F
whist

Weighted Histogram
rGaussPoisson

Simulate Gauss-Poisson Process
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
quadratcount

Quadrat counting for a point pattern
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
imcov

Spatial Covariance of a Pixel Image
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
methods.kppm

Methods for Cluster Point Process Models
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
rSSI

Simulate Simple Sequential Inhibition
mean.im

Maximum, Minimum, Mean, Median, Range or Sum of Pixel Values in an Image
methods.boxx

Methods for Multi-Dimensional Box
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
model.frame.ppm

Extract the Variables in a Point Process Model
plot.influence.ppm

Plot Influence Measure
predict.lppm

Predict Point Process Model on Linear Network
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
crossdist.psp

Pairwise distances between two different line segment patterns
split.ppp

Divide Point Pattern into Sub-patterns
rknn

Theoretical Distribution of Nearest Neighbour Distance
selfcrossing.psp

Crossing Points in a Line Segment Pattern
will.expand

Test Expansion Rule
print.im

Print Brief Details of an Image
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
quadrats

Divide Region into Quadrats
predict.ppm

Prediction from a Fitted Point Process Model
rescale.ppp

Convert Point Pattern to Another Unit of Length
ponderosa

Ponderosa Pine Tree Point Pattern
eroded.areas

Areas of Morphological Erosions
unmark

Remove Marks
plot.fasp

Plot a Function Array
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
shapley

Galaxies in the Shapley Supercluster
runifpoint3

Generate N Uniform Random Points in Three Dimensions
spatstat-package

The Spatstat Package
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
pp3

Three Dimensional Point Pattern
print.ppp

Print Brief Details of a Point Pattern Dataset
plot.hyperframe

Plot Entries in a Hyperframe
transect.im

Pixel Values Along a Transect
scan.test

Spatial Scan Test
is.subset.owin

Determine Whether One Window is Contained In Another
iplot

Point and Click Interface for Displaying a Point Pattern
zapsmall.im

Rounding of Pixel Values
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
ppp.object

Class of Point Patterns
psp

Create a Line Segment Pattern
linearK

Linear K Function
dilation

Morphological Dilation
pcfcross

Multitype pair correlation function (cross-type)
Linhom

L-function
clf.test

Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
is.multitype

Test whether Object is Multitype
vertices

Vertices of a Window
rlinegrid

Generate grid of parallel lines with random displacement
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
summary.quad

Summarizing a Quadrature Scheme
data.ppm

Extract Original Data from a Fitted Point Process Model
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
tess

Create a Tessellation
rshift.splitppp

Randomly Shift a List of Point Patterns
bermantest

Berman's Tests for Point Process Model
runifpointx

Generate N Uniform Random Points in Any Dimensions
shift.im

Apply Vector Translation To Pixel Image
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
rcell

Simulate Baddeley-Silverman Cell Process
Kres

Residual K Function
print.psp

Print Brief Details of a Line Segment Pattern Dataset
nndist

Nearest neighbour distances
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
is.rectangle

Determine Type of Window
nnclean

Nearest Neighbour Clutter Removal
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
rgbim

Create Colour-Valued Pixel Image
print.quad

Print a Quadrature Scheme
swedishpines

Swedish Pines Point Pattern
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
rNeymanScott

Simulate Neyman-Scott Process
project.ppm

Force Point Process Model to be Valid
markcorr

Mark Correlation Function
summary.owin

Summary of a Spatial Window
rotate.psp

Rotate a Line Segment Pattern
sumouter

Compute Quadratic Forms
is.multitype.ppm

Test Whether A Point Process Model is Multitype
rLGCP

Simulate Log-Gaussian Cox Process
residuals.ppm

Residuals for Fitted Point Process Model
progressreport

Print Progress Reports
methods.box3

Methods for Three-Dimensional Box
rescale.im

Convert Pixel Image to Another Unit of Length
quadscheme

Generate a Quadrature Scheme from a Point Pattern
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
bdist.points

Distance to Boundary of Window
K3est

K-function of a Three-Dimensional Point Pattern
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
chicago

Chicago Street Crime Data
area.owin

Area of a Window
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
interp.im

Interpolate a Pixel Image
incircle

Find Largest Circle Inside Window
identify.ppp

Identify Points in a Point Pattern
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
pairdist.default

Pairwise distances
plot.layered

Layered Plot
plot.fv

Plot Function Values
fv

Create a Function Value Table
rStrauss

Perfect Simulation of the Strauss Process
rescue.rectangle

Convert Window Back To Rectangle
sharpen

Data Sharpening of Point Pattern
union.quad

Union of Data and Dummy Points
model.matrix.ppm

Extract Design Matrix from Point Process Model
update.rmhcontrol

Update Control Parameters of Metropolis-Hastings Algorithm
pool.envelope

Pool Data from Several Envelopes
MultiHard

The Multitype Hard Core Point Process Model
discretise

Safely Convert Point Pattern Window to Binary Mask
contour.im

Contour plot of pixel image
MultiStrauss

The Multitype Strauss Point Process Model
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
cells

Biological Cells Point Pattern
lineardisc

Compute Disc of Given Radius in Linear Network
crossing.psp

Crossing Points of Two Line Segment Patterns
periodify

Make Periodic Copies of a Spatial Pattern
nztrees

New Zealand Trees Point Pattern
longleaf

Longleaf Pines Point Pattern
rpoispp

Generate Poisson Point Pattern
rmhexpand

Specify Simulation Window or Expansion Rule
runiflpp

Uniform Random Points on a Linear Network
scanpp

Read Point Pattern From Data File
rMaternII

Simulate Matern Model II
smooth.fv

Apply Smoothing to Function Values
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
rshift.ppp

Randomly Shift a Point Pattern
simulate.kppm

Simulate a Fitted Cluster Point Process Model
unique.ppp

Extract Unique Points from a Spatial Point Pattern
ppm.object

Class of Fitted Point Process Models
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
delaunay

Delaunay Triangulation of Point Pattern