Learn R Programming

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

spatstat (version 1.5-8)

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-8

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

February 1st, 2026

Functions in spatstat (1.5-8)

Saturated

Saturated Pairwise Interaction model
Kinhom

Inhomogeneous K-function
complement.owin

Take Complement of a Window
as.owin

Convert Data To Class owin
letterR

Window in Shape of Letter R
Strauss

The Strauss Point Process Model
betacells

Beta Ganglion Cells in Cat Retina
Fest

Estimate the empty space function F
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
coef.ppm

Coefficients of Fitted Point Process Model
distmap.owin

Distance Map of Window
Ord

Generic Ord Interaction model
bdist.pixels

Distance to Boundary of Window
amacrine

Hughes' Amacrine Cell Data
Poisson

Poisson Point Process Model
area.owin

Area of a Window
Softcore

The Soft Core Point Process Model
Pairwise

Generic Pairwise Interaction model
Jcross

Multitype J Function (i-to-j)
spatstat-internal

Internal spatstat functions
Kmulti

Marked K-Function
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
DiggleGratton

Diggle-Gratton model
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
Gest

Nearest Neighbour Distance Function G
reduced.sample

Reduced Sample Estimator using Histogram Data
LennardJones

The Lennard-Jones Potential
as.mask

Pixel Image Approximation of a Window
erode.owin

Erode a Window
Geyer

Geyer's Saturation Point Process Model
intersect.owin

Intersection or Union of Two Windows
MultiStrauss

The Multitype Strauss Point Process Model
ord.family

Ord Interaction Process Family
as.rectangle

Window Frame
corners

Corners of a rectangle
OrdThresh

Ord's Interaction model
is.owin

Test Whether An Object Is A Window
affine.owin

Apply Affine Transformation To Window
japanesepines

Japanese Pines Point Pattern
diameter

Diameter of a Window Frame
Kest

K-function
fv.object

Data Frames of Function Values
nearest.raster.point

Find Pixel Nearest to a Given Point
Kmeasure

Reduced Second Moment Measure
Kdot

Multitype K Function (i-to-any)
affine

Apply Affine Transformation
as.ppp

Convert Data To Class ppp
is.ppp

Test Whether An Object Is A Point Pattern
is.im

Test Whether An Object Is A Pixel Image
alltypes

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

Rotate a Point Pattern
identify.ppp

Identify Points in a Point Pattern
Kest.fft

K-function using FFT
Jest

Estimate the J-function
bramblecanes

Hutchings' Bramble Canes data
ppm.object

Class of Fitted Point Process Models
concatxy

Concatenate x,y Coordinate Vectors
anova.ppm

ANOVA for Fitted Point Process Models
setcov

Set Covariance of a Window
ppp

Create a Point Pattern
StraussHard

The Strauss / Hard Core Point Process Model
distmap

Distance Map
copper

Berman-Huntington points and lines data
Gdot

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

Lansing Woods Point Pattern
Gmulti

Marked Nearest Neighbour Distance Function
ppp.object

Class of Point Patterns
distmap.ppp

Distance Map of Point Pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
gridcentres

Rectangular grid of points
Jdot

Multitype J Function (i-to-any)
bdist.points

Distance to Boundary of Window
hamster

Aherne's hamster tumour data
plot.splitppp

Plot a List of Point Patterns
affine.ppp

Apply Affine Transformation To Point Pattern
is.subset.owin

Determine Whether One Window is Contained In Another
plot.plotppm

Plot a plotppm Object Created by plot.ppm
data.ppm

Extract Original Data from a Fitted Point Process Model
demopat

Artificial Data Point Pattern
bounding.box

Bounding Box of a Window
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
swedishpines

Swedish Pines Point Pattern
longleaf

Longleaf Pines Point Pattern
as.im

Convert to Pixel Image
Jmulti

Marked J Function
allstats

Calculate four standard summary functions of a point pattern.
rmpoint

Generate N Random Multitype Points
nztrees

New Zealand Trees Point Pattern
subset.fv

Extract Subset of Function Values
print.quad

Print a Quadrature Scheme
eroded.areas

Areas of Morphological Erosions
im

Create a Pixel Image Object
subset.fasp

Extract Subset of Function Array
cells

Biological Cells Point Pattern
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
is.marked.ppm

Test Whether A Point Process Model is Marked
print.ppp

Print Brief Details of a Point Pattern Dataset
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
spatstat.options

Internal Options in Spatstat Package
plot.ppm

plot a Fitted Point Process Model
plot.im

Plot a Pixel Image
inside.owin

Test Whether Points Are Inside A Window
is.marked

Test Whether Marks Are Present
default.dummy

Generate a Default Pattern of Dummy Points
spokes

Spokes pattern of dummy points
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
Kcross

Multitype K Function (Cross-type)
rMaternII

Simulate Matern Model II
superimpose

Superimpose Several Point Patterns
harmonic

Basis for Harmonic Functions
finpines

Pine saplings in Finland.
pairsat.family

Saturated Pairwise Interaction Point Process Family
rSSI

Simple Sequential Inhibition
pcf

Pair Correlation Function
update.ppm

Update a Fitted Point Process Model
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
redwood

California Redwoods Point Pattern (Ripley's Subset)
quad.object

Class of Quadrature Schemes
predict.ppm

Prediction from a Fitted Point Process Model
is.ppm

Test Whether An Object Is A Fitted Point Process Model
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
rmpoispp

Generate Multitype Poisson Point Pattern
plot.fasp

Plot a Function Array
pairwise.family

Pairwise Interaction Process Family
is.marked.ppp

Test Whether A Point Pattern is Marked
summary.owin

Summary of a Spatial Window
centroid.owin

Centroid of a window
simdat

Simulated Point Pattern
km.rs

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

plot a Spatial Quadrature Scheme
pairdist

Pairwise distances
rpoint

Generate N Random Points
plot.fv

Plot Function Valuesn
gridweights

Compute Quadrature Weights Based on Grid Counts
spatstat-deprecated

Deprecated spatstat functions
square

Square Window
print.ppm

Print a Fitted Point Process Model
ripras

Estimate window from points alone
raster.x

Cartesian Coordinates for a Pixel Raster
owin.object

Class owin
im.object

Class of Images
summary.im

Summarizing a Pixel Image
setmarks

Set or Reset the Marks in a Point Pattern
nndist

Nearest neighbour distances
spruces

Spruces Point Pattern
fasp.object

Function Arrays for Spatial Patterns
subset.ppp

Extract or Replace Subset of Point Pattern
rThomas

Simulate Thomas Process
runifpoint

Generate N Uniform Random Points
subset.im

Extract Subset of Image
stratrand

Stratified random point pattern
ppm

Fit Point Process Model to Data
print.im

Print Brief Details of an Image
rNeymanScott

Simulate Neyman-Scott Process
owin

Create a Window
plot.owin

Plot a Spatial Window
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
shift.owin

Apply Vector Translation To Window
unmark

Remove Marks from a Marked Point Pattern
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
split.ppp

Divide Point Pattern into Sub-patterns
markcorr

Mark Correlation Function
print.owin

Print Brief Details of a Spatial Window
shift.ppp

Apply Vector Translation To Point Pattern
rotate.owin

Rotate a Window
rotate

Rotate
plot.ppp

plot a Spatial Point Pattern
quadscheme

Generate a Quadrature Scheme from a Point Pattern
rMatClust

Simulate Matern Cluster Process
summary.quad

Summarizing a Quadrature Scheme
scanpp

Read Point Pattern From Data File
rMaternI

Simulate Matern Model I
summary.ppp

Summary of a Point Pattern Dataset
rpoispp

Generate Poisson Point Pattern
summary.ppm

Summarizing a Fitted Point Process Model
rmh.ppm

Simulate from a Fitted Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
shift.im

Apply Vector Translation To Pixel Image
shift

Apply Vector Translation
union.quad

Union of Data and Dummy Points