Learn R Programming

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

spatstat (version 1.25-2)

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

16,015

Version

1.25-2

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

January 19th, 2012

Functions in spatstat (1.25-2)

by.ppp

Apply a Function to a Point Pattern Broken Down by Factor
bind.fv

Combine Function Value Tables
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
is.subset.owin

Determine Whether One Window is Contained In Another
is.multitype

Test whether Object is Multitype
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
linim

Create Pixel Image on Linear Network
eval.fv

Evaluate Expression Involving Functions
density.ppp

Kernel Smoothed Intensity of Point Pattern
finpines

Pine saplings in Finland.
gridweights

Compute Quadrature Weights Based on Grid Counts
identify.psp

Identify Segments in a Line Segment Pattern
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
pool

Pool Data
markconnect

Mark Connection Function
betacells

Beta Ganglion Cells in Cat Retina
eem

Exponential Energy Marks
circumradius

Circumradius and Diameter of a Linear Network
data.ppm

Extract Original Data from a Fitted Point Process Model
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
nncross

Nearest Neighbours Between Two Patterns
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
clickjoin

Interactively join vertices on a plot
crossdist

Pairwise distances
crossdist.psp

Pairwise distances between two different line segment patterns
runifpoint3

Generate N Uniform Random Points in Three Dimensions
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
delaunay

Delaunay Triangulation of Point Pattern
clarkevans

Clark and Evans Aggregation Index
expand.owin

Expand Window By Factor
contour.im

Contour plot of pixel image
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
pixelquad

Quadrature Scheme Based on Pixel Grid
plot.im

Plot a Pixel Image
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
kppm

Fit Cluster or Cox Point Process Model
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
ord.family

Ord Interaction Process Family
endpoints.psp

Endpoints of Line Segment Pattern
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
runifpointOnLines

Generate N Uniform Random Points On Line Segments
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
runifdisc

Generate N Uniform Random Points in a Disc
pairdist.ppx

Pairwise Distances in Any Dimensions
spatstat.options

Internal Options in Spatstat Package
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
plot.fv

Plot Function Values
solutionset

Evaluate Logical Expression Involving Pixel Images and Return Region Where Expression is True
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
msr

Signed or Vector-Valued Measure
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
crossdist.ppp

Pairwise distances between two different point patterns
edges2triangles

List Triangles in a Graph
eval.im

Evaluate Expression Involving Pixel Images
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
lgcp.estK

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

Test Whether An Object Is Empty
infline

Infinite Straight Lines
default.dummy

Generate a Default Pattern of Dummy Points
is.multitype.ppp

Test Whether A Point Pattern is Multitype
convexhull.xy

Convex Hull of Points
plot.ppm

plot a Fitted Point Process Model
disc

Circular Window
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
pcfinhom

Inhomogeneous Pair Correlation Function
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
collapse.fv

Collapse Several Function Tables into One
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
plot.owin

Plot a Spatial Window
rMosaicField

Mosaic Random Field
methods.pp3

Methods for three-dimensional point patterns
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
inforder.family

Infinite Order Interaction Family
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
distfun

Distance Map as a Function
is.marked.ppp

Test Whether A Point Pattern is Marked
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
density.psp

Kernel Smoothing of Line Segment Pattern
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
mean.im

Maximum, Minimum, Mean, Median, Range or Sum of Pixel Values in an Image
simplify.owin

Approximate a Polygon by a Simpler Polygon
flu

Influenza Virus Proteins
envelope.lpp

Envelope for Point Patterns on Linear Network
Fiksel

The Fiksel Interaction
concatxy

Concatenate x,y Coordinate Vectors
pppdist

Distance Between Two Point Patterns
cut.im

Convert Pixel Image from Numeric to Factor
envelope.envelope

Recompute Envelopes
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
slrm

Spatial Logistic Regression
compatible.fasp

Test Whether Function Arrays Are Compatible
bramblecanes

Hutchings' Bramble Canes data
shift

Apply Vector Translation
as.interact

Extract Interaction Structure
as.im

Convert to Pixel Image
Jdot

Multitype J Function (i-to-any)
residuals.ppm

Residuals for Fitted Point Process Model
Kcross.inhom

Inhomogeneous Cross K Function
boxx

Multi-Dimensional Box
plot.layered

Layered Plot
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
nearestsegment

Find Line Segment Nearest to Each Point
lut

Lookup Tables
print.im

Print Brief Details of an Image
cells

Biological Cells Point Pattern
nearest.raster.point

Find Pixel Nearest to a Given Point
dilation

Morphological Dilation
letterR

Window in Shape of Letter R
colourmap

Colour Lookup Tables
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
anemones

Beadlet Anemones Data
chicago

Chicago Street Crime Data
matchingdist

Distance for a Point Pattern Matching
nsegments

Number of Line Segments in a Line Segment Pattern
chorley

Chorley-Ribble Cancer Data
heather

Diggle's Heather Data
pcf.ppp

Pair Correlation Function of Point Pattern
npfun

Dummy Function Returns Number of Points
pool.envelope

Pool Data from Several Envelopes
lpp

Create Point Pattern on Linear Network
tiles

Extract List of Tiles in a Tessellation
nndist

Nearest neighbour distances
ppp

Create a Point Pattern
is.convex

Test Whether a Window is Convex
summary.quad

Summarizing a Quadrature Scheme
logLik.ppm

Log Likelihood and AIC for Point Process Model
clarkevans.test

Clark and Evans Test
default.expand

Compute Expansion Window for Simulation
model.images

Compute Images of Constructed Covariates
rpoislpp

Poisson Point Process on a Linear Network
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
methods.box3

Methods for Three-Dimensional Box
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
ponderosa

Ponderosa Pine Tree Point Pattern
split.ppp

Divide Point Pattern into Sub-patterns
mincontrast

Method of Minimum Contrast
pairdist.psp

Pairwise distances between line segments
crossdist.default

Pairwise distances between two different sets of points
plot.leverage.ppm

Plot Leverage Function
closing

Morphological Closing
logLik.slrm

Loglikelihood of Spatial Logistic Regression
nndist.psp

Nearest neighbour distances between line segments
reach

Interaction Distance of a Point Process
vargamma.estK

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

Quadrat counting for a point pattern
flipxy

Exchange X and Y Coordinates
Poisson

Poisson Point Process Model
methods.units

Methods for Units
centroid.owin

Centroid of a window
model.matrix.ppm

Extract Design Matrix from Point Process Model
Jmulti

Marked J Function
ppx

Multidimensional Space-Time Point Pattern
summary.owin

Summary of a Spatial Window
plot.envelope

Plot a Simulation Envelope
rMatClust

Simulate Matern Cluster Process
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
scan.test

Spatial Scan Test
owin.object

Class owin
latest.news

Print News About Latest Version of Package
rotate.owin

Rotate a Window
plot.pp3

Plot a three-dimensional point pattern
simulate.kppm

Simulate a Fitted Cluster Point Process Model
Kinhom

Inhomogeneous K-function
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
Tstat

Third order summary statistic
harmonise.im

Make Pixel Images Compatible
rsyst

Simulate systematic random point pattern
crossing.psp

Crossing Points of Two Line Segment Patterns
Emark

Diagnostics for random marking
LennardJones

The Lennard-Jones Potential
bounding.box.xy

Convex Hull of Points
layered

Create List of Plotting Layers
clickpoly

Interactively Define a Polygon
rpoislinetess

Poisson Line Tessellation
rNeymanScott

Simulate Neyman-Scott Process
pairdist

Pairwise distances
methods.linnet

Methods for Linear Networks
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
runifpointx

Generate N Uniform Random Points in Any Dimensions
persp.im

Perspective Plot of Pixel Image
bounding.box

Bounding Box of a Window or Point Pattern
nbfires

Point Patterns of New Brunswick Forest Fires
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
distmap.ppp

Distance Map of Point Pattern
rPoissonCluster

Simulate Poisson Cluster Process
plot.hyperframe

Plot Entries in a Hyperframe
spokes

Spokes pattern of dummy points
methods.distfun

Methods for Distance Functions
pairsat.family

Saturated Pairwise Interaction Point Process Family
integral.im

Integral of a Pixel Image
lurking

Lurking variable plot
ewcdf

Weighted Empirical Cumulative Distribution Function
plot.influence.ppm

Plot Influence Measure
rStrauss

Perfect Simulation of the Strauss Process
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
spatstat-internal

Internal spatstat functions
union.quad

Union of Data and Dummy Points
fryplot

Fry Plot of Point Pattern
discretise

Safely Convert Point Pattern Window to Binary Mask
plot.msr

Plot a Signed or Vector-Valued Measure
pairdist.ppp

Pairwise distances
clickppp

Interactively Add Points
Lcross

Multitype L-function (cross-type)
unique.ppp

Extract Unique Points from a Spatial Point Pattern
Ldot

Multitype L-function (i-to-any)
plot.slrm

Plot a Fitted Spatial Logistic Regression
rotate.ppp

Rotate a Point Pattern
rHardcore

Perfect Simulation of the Hardcore Process
fasp.object

Function Arrays for Spatial Patterns
Kscaled

Locally Scaled K-function
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
imcov

Spatial Covariance of a Pixel Image
as.tess

Convert Data To Tessellation
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
perimeter

Perimeter Length of Window
sumouter

Compute Quadratic Forms
as.polygonal

Convert a Window to a Polygonal Window
rhohat

Smoothing Estimate of Covariate Transformation
colourtools

Convert and Compare Colours in Different Formats
contour.listof

Plot a List of Things
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
Extract.listof

Extract or Replace Subset of a List of Things
rVarGamma

Simulate Neyman-Scott Point Process with Variance Gamma cluster kernel
rMaternI

Simulate Matern Model I
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
rpoisline

Generate Poisson Random Line Process
print.ppp

Print Brief Details of a Point Pattern Dataset
connected

Connected components of an image or window
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
plot.splitppp

Plot a List of Point Patterns
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
Kest.fft

K-function using FFT
erosion

Morphological Erosion
reduced.sample

Reduced Sample Estimator using Histogram Data
pcf.fv

Pair Correlation Function obtained from K Function
gpc2owin

Convert Polygonal Region into Different Format
localpcf

Local pair correlation function
longleaf

Longleaf Pines Point Pattern
rcell

Simulate Baddeley-Silverman Cell Process
summary.psp

Summary of a Line Segment Pattern Dataset
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
linearpcf

Linear Pair Correlation Function
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
iplot

Point and Click Interface for Displaying a Point Pattern
predict.ppm

Prediction from a Fitted Point Process Model
lgcp.estpcf

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
identify.ppp

Identify Points in a Point Pattern
AreaInter

The Area Interaction Point Process Model
nnwhich.pp3

Nearest neighbours in three dimensions
affine.psp

Apply Affine Transformation To Line Segment Pattern
predict.lppm

Predict Point Process Model on Linear Network
as.matrix.im

Convert Pixel Image to Matrix or Array
im

Create a Pixel Image Object
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
unnormdensity

Weighted kernel smoother
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
bronzefilter

Bronze gradient filter data
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
rthin

Random Thinning
rpoint

Generate N Random Points
BadGey

Hybrid Geyer Point Process Model
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
print.psp

Print Brief Details of a Line Segment Pattern Dataset
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
murchison

Murchison gold deposits
MultiStrauss

The Multitype Strauss Point Process Model
MultiHard

The Multitype Hard Core Point Process Model
Pairwise

Generic Pairwise Interaction model
is.marked.ppm

Test Whether A Point Process Model is Marked
quantile.im

Sample Quantiles of Pixel Image
varblock

Estimate Variance of Summary Statistic by Subdivision
pcf

Pair Correlation Function
psp.object

Class of Line Segment Patterns
as.function.fv

Convert Function Value Table to Function
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
print.ppm

Print a Fitted Point Process Model
volume

Volume of an Object
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
gorillas

Gorilla Nesting Sites
tile.areas

Compute Areas of Tiles in a Tessellation
plot.linim

Plot Pixel Image on Linear Network
update.kppm

Update a Fitted Cluster Point Process Model
project.ppm

Force Point Process Model to be Valid
unmark

Remove Marks
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
hyperframe

Hyper Data Frame
is.multitype.ppm

Test Whether A Point Process Model is Multitype
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
Hardcore

The Hard Core Point Process Model
Lcross.inhom

Inhomogeneous Cross Type L Function
selfcrossing.psp

Crossing Points in a Line Segment Pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
DiggleGratton

Diggle-Gratton model
rlabel

Random Re-Labelling of Point Pattern
Kdot.inhom

Inhomogeneous Multitype K Dot Function
markvario

Mark Variogram
is.im

Test Whether An Object Is A Pixel Image
diameter

Diameter of an Object
rgbim

Create Colour-Valued Pixel Image
is.marked

Test Whether Marks Are Present
ppm

Fit Point Process Model to Data
coef.ppm

Coefficients of Fitted Point Process Model
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
ppp.object

Class of Point Patterns
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
simplenet

Simple Example of Linear Network
model.frame.ppm

Extract the Environment of a Point Process Model
linearKinhom

Inhomogeneous Linear K Function
pcfdot

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

Model Compensator of K Function
area.owin

Area of a Window
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
rknn

Theoretical Distribution of Nearest Neighbour Distance
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
summary.im

Summarizing a Pixel Image
Kcross

Multitype K Function (Cross-type)
zapsmall.im

Rounding of Pixel Values
Lest

L-function
plot.plotppm

Plot a plotppm Object Created by plot.ppm
triplet.family

Triplet Interaction Family
quad.object

Class of Quadrature Schemes
rshift.ppp

Randomly Shift a Point Pattern
update.ppm

Update a Fitted Point Process Model
Strauss

The Strauss Point Process Model
sharpen

Data Sharpening of Point Pattern
plot.bermantest

Plot Result of Berman Test
Extract.tess

Extract or Replace Subset of Tessellation
bdist.pixels

Distance to Boundary of Window
redwood

California Redwoods Point Pattern (Ripley's Subset)
rstrat

Simulate Stratified Random Point Pattern
append.psp

Combine Two Line Segment Patterns
Extract.fv

Extract Subset of Function Values
Ldot.inhom

Inhomogeneous Multitype L Dot Function
scaletointerval

Rescale Data to Lie Between Specified Limits
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
pppmatching.object

Class of Point Matchings
compatible.im

Test Whether Pixel Images Are Compatible
as.box3

Convert Data to Three-Dimensional Box
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
with.fv

Evaluate an Expression in a Function Table
methods.kppm

Methods for Cluster Point Process Models
affine.ppp

Apply Affine Transformation To Point Pattern
rlinegrid

Generate grid of parallel lines with random displacement
as.data.frame.im

Convert Pixel Image to Data Frame
corners

Corners of a rectangle
Gdot

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

Marks of a Point Pattern
Extract.fasp

Extract Subset of Function Array
summary.splitppp

Summary of a Split Point Pattern
Kmulti

Marked K-Function
amacrine

Hughes' Amacrine Cell Data
leverage.ppm

Leverage Measure for Spatial Point Process Model
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
Gfox

Foxall's Distance Functions
K3est

K-function of a Three-Dimensional Point Pattern
Saturated

Saturated Pairwise Interaction model
as.hyperframe

Convert Data to Hyperframe
distmap.owin

Distance Map of Window
pixellate.owin

Convert Window to Pixel Image
runiflpp

Uniform Random Points on a Linear Network
pairwise.family

Pairwise Interaction Process Family
plot.tess

Plot a tessellation
Replace.im

Reset Values in Subset of Image
Extract.splitppp

Extract or Replace Sub-Patterns
pixellate.psp

Convert Line Segment Pattern to Pixel Image
hamster

Aherne's hamster tumour data
rat

Ratio object
lansing

Lansing Woods Point Pattern
vertices

Vertices of a Window
Triplets

The Triplet Point Process Model
Softcore

The Soft Core Point Process Model
as.psp

Convert Data To Class psp
bei

Tropical rain forest trees
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
rescale.owin

Convert Window to Another Unit of Length
lengths.psp

Lengths of Line Segments
pixellate

Convert Spatial Object to Pixel Image
is.stationary

Recognise Stationary and Poisson Point Process Models
rescue.rectangle

Convert Window Back To Rectangle
as.mask

Pixel Image Approximation of a Window
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
distmap

Distance Map
levelset

Level Set of a Pixel Image
smooth.ppp

Spatial smoothing of observations at irregular points
ripras

Estimate window from points alone
model.depends

Identify Covariates Involved in each Model Term
whist

Weighted Histogram
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
bdist.tiles

Distance to Boundary of Window
Extract.quad

Subset of Quadrature Scheme
urkiola

Urkiola Woods Point Pattern
rshift.psp

Randomly Shift a Line Segment Pattern
plot.kppm

Plot a fitted cluster point process
spatstat-package

The Spatstat Package
rescale.ppp

Convert Point Pattern to Another Unit of Length
psp

Create a Line Segment Pattern
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
summary.ppp

Summary of a Point Pattern Dataset
Kres

Residual K Function
profilepl

Profile Maximum Pseudolikelihood
eroded.areas

Areas of Morphological Erosions
rescale.im

Convert Pixel Image to Another Unit of Length
rmh.default

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

Optimise Irregular Trend Parameters in Point Process Model
Gcom

Model Compensator of Nearest Neighbour Function
coords

Extract or Change Coordinates of a Spatial or Spatiotemporal Point Pattern
quadrat.test

Chi-Squared Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
Gmulti

Marked Nearest Neighbour Distance Function
valid.ppm

Check Whether Point Process Model is Valid
areaGain

Difference of Disc Areas
qqplot.ppm

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

Multitype pair correlation function (cross-type)
markcorrint

Mark Correlation Integral
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
rThomas

Simulate Thomas Process
influence.ppm

Influence Measure for Spatial Point Process Model
Jest

Estimate the J-function
affine

Apply Affine Transformation
harmonic

Basis for Harmonic Functions
plot.ppp

plot a Spatial Point Pattern
split.im

Divide Image Into Sub-images
fv

Create a Function Value Table
Kmodel

K function of a model
as.matrix.owin

Convert Pixel Image to Matrix
dfbetas.ppm

Parameter influence measure
nndist.pp3

Nearest neighbour distances in three dimensions
quadrats

Divide Region into Quadrats
bdist.points

Distance to Boundary of Window
ants

Harkness-Isham ants' nests data
rSSI

Simulate Simple Sequential Inhibition
as.ppp

Convert Data To Class ppp
border

Border Region of a Window
F3est

Empty Space Function of a Three-Dimensional Point Pattern
pairs.im

Scatterplot Matrix for Pixel Images
plot.listof

Plot a List of Things
fv.object

Function Value Table
incircle

Find Largest Circle Inside Window
lineardisc

Compute Disc of Given Radius in Linear Network
Ord

Generic Ord Interaction model
hist.im

Histogram of Pixel Values in an Image
plot.quad

plot a Spatial Quadrature Scheme
pcf.fasp

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

Extract Subset of Image
suffstat

Sufficient Statistic of Point Process Model
markcorr

Mark Correlation Function
affine.owin

Apply Affine Transformation To Window
rmpoint

Generate N Random Multitype Points
midpoints.psp

Midpoints of Line Segment Pattern
plot.linnet

Plot a linear network
Hest

Spherical Contact Distribution Function
rotate.psp

Rotate a Line Segment Pattern
pp3

Three Dimensional Point Pattern
rmh.ppm

Simulate from a Fitted Point Process Model
rpoispp

Generate Poisson Point Pattern
print.owin

Print Brief Details of a Spatial Window
print.quad

Print a Quadrature Scheme
shift.im

Apply Vector Translation To Pixel Image
raster.x

Cartesian Coordinates for a Pixel Raster
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
idw

Inverse-distance weighted smoothing of observations at irregular points
rjitter

Random Perturbation of a Point Pattern
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
simdat

Simulated Point Pattern
by.im

Apply Function to Image Broken Down by Factor
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
Jcross

Multitype J Function (i-to-j)
Kmeasure

Reduced Second Moment Measure
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
anova.ppm

ANOVA for Fitted Point Process Models
as.rectangle

Window Frame
cut.ppp

Classify Points in a Point Pattern
smooth.msr

Smooth a Signed or Vector-Valued Measure
StraussHard

The Strauss / Hard Core Point Process Model
marks.psp

Marks of a Line Segment Pattern
effectfun

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

Simulation Envelopes of Summary Function
linnet

Create a Linear Network
compareFit

Residual Diagnostics for Multiple Fitted Models
compatible

Test Whether Objects Are Compatible
rshift

Random Shift
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
tess

Create a Tessellation
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
deltametric

Delta Metric
interp.im

Interpolate a Pixel Image
Gres

Residual G Function
Geyer

Geyer's Saturation Point Process Model
npoints

Number of Points in a Point Pattern
owin

Create a Window
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
eval.fasp

Evaluate Expression Involving Function Arrays
plot.colourmap

Plot a Colour Map
pool.fasp

Pool Data from Several Function Arrays
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
project2segment

Move Point To Nearest Line
rGaussPoisson

Simulate Gauss-Poisson Process
trim.rectangle

Cut margins from rectangle
scanpp

Read Point Pattern From Data File
compatible.fv

Test Whether Function Objects Are Compatible
areaLoss

Difference of Disc Areas
miplot

Morishita Index Plot
distmap.psp

Distance Map of Line Segment Pattern
im.object

Class of Images
pool.rat

Pool Data from Several Ratio Objects
dirichlet

Dirichlet Tessellation of Point Pattern
blur

Apply Gaussian Blur to a Pixel Image
convexhull

Convex Hull
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
linearK

Linear K Function
is.ppp

Test Whether An Object Is A Point Pattern
pairdist.default

Pairwise distances
methods.lpp

Methods for Point Patterns on a Linear Network
periodify

Make Periodic Copies of a Spatial Pattern
nztrees

New Zealand Trees Point Pattern
pairdist.pp3

Pairwise distances in Three Dimensions
nnwhich.ppx

Nearest Neighbours in Any Dimensions
pairdist.lpp

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

Create a Point Matching
rotate

Rotate
Gest

Nearest Neighbour Distance Function G
dilated.areas

Areas of Morphological Dilations
intersect.tess

Intersection of Two Tessellations
vcov.kppm

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

Set Covariance of a Window
Fest

Estimate the empty space function F
OrdThresh

Ord's Interaction model
shift.psp

Apply Vector Translation To Line Segment Pattern
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
discpartarea

Area of Part of Disc
demopat

Artificial Data Point Pattern
is.owin

Test Whether An Object Is A Window
nnclean

Nearest Neighbour Clutter Removal
rLGCP

Simulate Log-Gaussian Cox Process
rMaternII

Simulate Matern Model II
clip.infline

Intersect Infinite Straight Lines with a Window
spatstat-deprecated

Deprecated spatstat functions
gridcentres

Rectangular grid of points
is.ppm

Test Whether An Object Is A Fitted Point Process Model
japanesepines

Japanese Pines Point Pattern
formula.ppm

Model Formulae for Gibbs Point Process Models
inside.owin

Test Whether Points Are Inside A Window
nnwhich

Nearest neighbour
localK

Neighbourhood density function
methods.boxx

Methods for Multi-Dimensional Box
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
ppm.object

Class of Fitted Point Process Models
pointsOnLines

Place Points Evenly Along Specified Lines
rMosaicSet

Mosaic Random Set
smooth.fv

Apply Smoothing to Function Values
superimpose

Superimpose Several Geometric Patterns
rshift.splitppp

Randomly Shift a List of Point Patterns
summary.ppm

Summarizing a Fitted Point Process Model
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
stieltjes

Compute Integral of Function Against Cumulative Distribution
allstats

Calculate four standard summary functions of a point pattern.
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
runifpoint

Generate N Uniform Random Points
rescale

Convert dataset to another unit of length
Extract.ppp

Extract or Replace Subset of Point Pattern
Kest

K-function
Iest

Estimate the I-function
square

Square Window
plot.fasp

Plot a Function Array
predict.kppm

Prediction from a Fitted Cluster Point Process Model
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
Extract.psp

Extract Subset of Line Segment Pattern
Extract.msr

Extract Subset of Signed or Vector Measure
Kdot

Multitype K Function (i-to-any)
angles.psp

Orientation Angles of Line Segments
as.owin

Convert Data To Class owin
bermantest

Berman's Tests for Point Process Model
Linhom

L-function
diameter.owin

Diameter of a Window
localKinhom

Inhomogeneous Neighbourhood Density Function
pixellate.ppp

Convert Point Pattern to Pixel Image
diameter.box3

Geometrical Calculations for Three-Dimensional Box
plot.psp

plot a Spatial Line Segment Pattern
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
vargamma.estpcf

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
multiplicity.ppp

Count Multiplicity of Duplicate Points
spruces

Spruces Point Pattern
quadscheme

Generate a Quadrature Scheme from a Point Pattern
quadratresample

Resample a Point Pattern by Resampling Quadrats
lppm

Fit Point Process Model to Point Pattern on Linear Network
progressreport

Print Progress Reports
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
shift.ppp

Apply Vector Translation To Point Pattern
summary.listof

Summary of a List of Things
rmpoispp

Generate Multitype Poisson Point Pattern
swedishpines

Swedish Pines Point Pattern
shift.owin

Apply Vector Translation To Window
shapley

Galaxies in the Shapley Supercluster
box3

Three-Dimensional Box
complement.owin

Take Complement of a Window
unitname

Name for Unit of Length
copper

Berman-Huntington points and lines data
opening

Morphological Opening