Learn R Programming

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

spatstat (version 1.5-7)

Spatial Point Pattern analysis, model-fitting and simulation

Description

Spatial Point Pattern data analysis, modelling and simulation including multitype/marked points and spatial covariates

Copy Link

Version

Install

install.packages('spatstat')

Monthly Downloads

22,386

Version

1.5-7

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

February 1st, 2026

Functions in spatstat (1.5-7)

data.ppm

Extract Original Data from a Fitted Point Process Model
affine

Apply Affine Transformation
Kdot

Multitype K Function (i-to-any)
Gmulti

Marked Nearest Neighbour Distance Function
Jmulti

Marked J Function
Strauss

The Strauss Point Process Model
affine.owin

Apply Affine Transformation To Window
harmonic

Basis for Harmonic Functions
identify.ppp

Identify Points in a Point Pattern
as.rectangle

Window Frame
im

Create a Pixel Image Object
Saturated

Saturated Pairwise Interaction model
markcorr

Mark Correlation Function
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
fasp.object

Function Arrays for Spatial Patterns
lansing

Lansing Woods Point Pattern
MultiStrauss

The Multitype Strauss Point Process Model
im.object

Class of Images
plot.plotppm

Plot a plotppm Object Created by plot.ppm
is.subset.owin

Determine Whether One Window is Contained In Another
pairsat.family

Saturated Pairwise Interaction Point Process Family
cells

Biological Cells Point Pattern
copper

Berman-Huntington points and lines data
complement.owin

Take Complement of a Window
plot.ppm

plot a Fitted Point Process Model
betacells

Beta Ganglion Cells in Cat Retina
pairdist

Pairwise distances
as.mask

Pixel Image Approximation of a Window
ppm.object

Class of Fitted Point Process Models
area.owin

Area of a Window
Kest.fft

K-function using FFT
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
rThomas

Simulate Thomas Process
bramblecanes

Hutchings' Bramble Canes data
spatstat-internal

Internal spatstat functions
is.ppm

Test Whether An Object Is A Fitted Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
print.owin

Print Brief Details of a Spatial Window
ppp

Create a Point Pattern
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
pairwise.family

Pairwise Interaction Process Family
rMatClust

Simulate Matern Cluster Process
spatstat.options

Internal Options in Spatstat Package
raster.x

Cartesian Coordinates for a Pixel Raster
Gdot

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

Concatenate x,y Coordinate Vectors
coef.ppm

Coefficients of Fitted Point Process Model
rmpoispp

Generate Multitype Poisson Point Pattern
print.ppp

Print Brief Details of a Point Pattern Dataset
default.dummy

Generate a Default Pattern of Dummy Points
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
DiggleGratton

Diggle-Gratton model
ppm

Fit Point Process Model to Data
rotate

Rotate
print.ppm

Print a Fitted Point Process Model
superimpose

Superimpose Several Point Patterns
print.im

Print Brief Details of an Image
subset.ppp

Extract or Replace Subset of Point Pattern
setcov

Set Covariance of a Window
summary.ppp

Summary of a Point Pattern Dataset
LennardJones

The Lennard-Jones Potential
stratrand

Stratified random point pattern
rMaternII

Simulate Matern Model II
finpines

Pine saplings in Finland.
Gest

Nearest Neighbour Distance Function G
setmarks

Set or Reset the Marks in a Point Pattern
as.im

Convert to Pixel Image
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
quadscheme

Generate a Quadrature Scheme from a Point Pattern
distmap

Distance Map
Pairwise

Generic Pairwise Interaction model
allstats

Calculate four standard summary functions of a point pattern.
inside.owin

Test Whether Points Are Inside A Window
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
OrdThresh

Ord's Interaction model
owin.object

Class owin
is.owin

Test Whether An Object Is A Window
Kcross

Multitype K Function (Cross-type)
bdist.points

Distance to Boundary of Window
nztrees

New Zealand Trees Point Pattern
Jdot

Multitype J Function (i-to-any)
Poisson

Poisson Point Process Model
erode.owin

Erode a Window
plot.ppp

plot a Spatial Point Pattern
as.ppp

Convert Data To Class ppp
fv.object

Data Frames of Function Values
Kmeasure

Reduced Second Moment Measure
bdist.pixels

Distance to Boundary of Window
Softcore

The Soft Core Point Process Model
spruces

Spruces Point Pattern
bounding.box

Bounding Box of a Window
intersect.owin

Intersection or Union of Two Windows
update.ppm

Update a Fitted Point Process Model
pcf

Pair Correlation Function
is.marked.ppm

Test Whether A Point Process Model is Marked
plot.fasp

Plot a Function Array
Kinhom

Inhomogeneous K-function
shift.ppp

Apply Vector Translation To Point Pattern
corners

Corners of a rectangle
eroded.areas

Areas of Morphological Erosions
scanpp

Read Point Pattern From Data File
affine.ppp

Apply Affine Transformation To Point Pattern
subset.im

Extract Subset of Image
centroid.owin

Centroid of a window
square

Square Window
print.quad

Print a Quadrature Scheme
ppp.object

Class of Point Patterns
plot.owin

Plot a Spatial Window
rNeymanScott

Simulate Neyman-Scott Process
subset.fv

Extract Subset of Function Values
diameter

Diameter of a Window Frame
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
Fest

Estimate the empty space function F
demopat

Artificial Data Point Pattern
Geyer

Geyer's Saturation Point Process Model
ord.family

Ord Interaction Process Family
rSSI

Simple Sequential Inhibition
Kmulti

Marked K-Function
spokes

Spokes pattern of dummy points
is.im

Test Whether An Object Is A Pixel Image
distmap.ppp

Distance Map of Point Pattern
distmap.owin

Distance Map of Window
japanesepines

Japanese Pines Point Pattern
StraussHard

The Strauss / Hard Core Point Process Model
Jcross

Multitype J Function (i-to-j)
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
fitted.ppm

Fitted Conditional Intensity for Point Process Model
Kest

K-function
is.marked.ppp

Test Whether A Point Pattern is Marked
rmh.ppm

Simulate from a Fitted Point Process Model
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
subset.fasp

Extract Subset of Function Array
rMaternI

Simulate Matern Model I
plot.quad

plot a Spatial Quadrature Scheme
is.ppp

Test Whether An Object Is A Point Pattern
nearest.raster.point

Find Pixel Nearest to a Given Point
reduced.sample

Reduced Sample Estimator using Histogram Data
nndist

Nearest neighbour distances
ripras

Estimate window from points alone
redwood

California Redwoods Point Pattern (Ripley's Subset)
spatstat-deprecated

Deprecated spatstat functions
rmh.default

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

Simulated Point Pattern
as.owin

Convert Data To Class owin
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
rpoispp

Generate Poisson Point Pattern
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
gridcentres

Rectangular grid of points
owin

Create a Window
rmpoint

Generate N Random Multitype Points
letterR

Window in Shape of Letter R
summary.quad

Summarizing a Quadrature Scheme
summary.im

Summarizing a Pixel Image
shift.im

Apply Vector Translation To Pixel Image
runifpoint

Generate N Uniform Random Points
rotate.owin

Rotate a Window
shift.owin

Apply Vector Translation To Window
is.marked

Test Whether Marks Are Present
split.ppp

Divide Point Pattern into Sub-patterns
Jest

Estimate the J-function
shift

Apply Vector Translation
gridweights

Compute Quadrature Weights Based on Grid Counts
Ord

Generic Ord Interaction model
predict.ppm

Prediction from a Fitted Point Process Model
amacrine

Hughes' Amacrine Cell Data
plot.splitppp

Plot a List of Point Patterns
rpoint

Generate N Random Points
rotate.ppp

Rotate a Point Pattern
longleaf

Longleaf Pines Point Pattern
summary.ppm

Summarizing a Fitted Point Process Model
union.quad

Union of Data and Dummy Points
swedishpines

Swedish Pines Point Pattern
quad.object

Class of Quadrature Schemes
summary.owin

Summary of a Spatial Window
hamster

Aherne's hamster tumour data
plot.fv

Plot Function Valuesn
unmark

Remove Marks from a Marked Point Pattern