Learn R Programming

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

spatstat (version 1.5-3)

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

16,590

Version

1.5-3

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.5-3)

harmonic

Basis for Harmonic Functions
Kest.fft

K-function using FFT
fitted.ppm

Fitted Conditional Intensity for Point Process Model
rSSI

Simple Sequential Inhibition
unmark

Remove Marks from a Marked Point Pattern
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
Geyer

Geyer's Saturation Point Process Model
lansing

Lansing Woods Point Pattern
shift.owin

Apply Vector Translation To Window
owin

Create a Window
amacrine

Hughes' Amacrine Cell Data
allstats

Calculate four standard summary functions of a point pattern.
MultiStraussHard

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

Distance to Boundary of Window
is.marked.ppp

Test Whether A Point Pattern is Marked
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
pairwise.family

Pairwise Interaction Process Family
Jest

Estimate the J-function
markcorr

Mark Correlation Function
as.rectangle

Window Frame
default.dummy

Generate a Default Pattern of Dummy Points
ppp

Create a Point Pattern
print.owin

Print Brief Details of a Spatial Window
Softcore

The Soft Core Point Process Model
Gmulti

Marked Nearest Neighbour Distance Function
bounding.box

Bounding Box of a Window
rThomas

Simulate Thomas Process
bdist.points

Distance to Boundary of Window
plot.quad

plot a Spatial Quadrature Scheme
rNeymanScott

Simulate Neyman-Scott Process
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
shift.im

Apply Vector Translation To Pixel Image
redwood

California Redwoods Point Pattern (Ripley's Subset)
setmarks

Set or Reset the Marks in a Point Pattern
union.quad

Union of Data and Dummy Points
affine

Apply Affine Transformation
plot.ppp

plot a Spatial Point Pattern
rpoispp

Generate Poisson Point Pattern
identify.ppp

Identify Points in a Point Pattern
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
superimpose

Superimpose Several Point Patterns
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
DiggleGratton

Diggle-Gratton model
Jcross

Multitype J Function (i-to-j)
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
Jmulti

Marked J Function
OrdThresh

Ord's Interaction model
eroded.areas

Areas of Morphological Erosions
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
is.im

Test Whether An Object Is A Pixel Image
Fest

Estimate the empty space function F
im

Create a Pixel Image Object
centroid.owin

Centroid of a window
pcf

Pair Correlation Function
nndist

Nearest neighbour distances
as.im

Convert to Pixel Image
betacells

Beta Ganglion Cells in Cat Retina
fasp.object

Function Arrays for Spatial Patterns
ripras

Estimate window from points alone
is.marked.ppm

Test Whether A Point Process Model is Marked
complement.owin

Take Complement of a Window
is.subset.owin

Determine Whether One Window is Contained In Another
ppm.object

Class of Fitted Point Process Models
Jdot

Multitype J Function (i-to-any)
stratrand

Stratified random point pattern
as.mask

Pixel Image Approximation of a Window
pairdist

Pairwise distances
erode.owin

Erode a Window
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
rotate

Rotate
spatstat-deprecated

Deprecated spatstat functions
area.owin

Area of a Window
swedishpines

Swedish Pines Point Pattern
affine.ppp

Apply Affine Transformation To Point Pattern
shift

Apply Vector Translation
Kdot

Multitype K Function (i-to-any)
im.object

Class of Images
print.im

Print Brief Details of an Image
data.ppm

Extract Original Data from a Fitted Point Process Model
split.ppp

Divide Point Pattern into Sub-patterns
owin.object

Class owin
rMatClust

Simulate Matern Cluster Process
predict.ppm

Prediction from a Fitted Point Process Model
cells

Biological Cells Point Pattern
summary.ppp

Summary of a Point Pattern Dataset
rmpoispp

Generate Multitype Poisson Point Pattern
spatstat.options

Internal Options in Spatstat Package
Kmeasure

Reduced Second Moment Measure
diameter

Diameter of a Window Frame
quad.object

Class of Quadrature Schemes
pairsat.family

Saturated Pairwise Interaction Point Process Family
print.quad

Print a Quadrature Scheme
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
simdat

Simulated Point Pattern
Poisson

Poisson Point Process Model
as.owin

Convert Data To Class owin
bramblecanes

Hutchings' Bramble Canes data
Kcross

Multitype K Function (Cross-type)
Gdot

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

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

Window in Shape of Letter R
LennardJones

The Lennard-Jones Potential
Kmulti

Marked K-Function
gridcentres

Rectangular grid of points
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
ppp.object

Class of Point Patterns
Strauss

The Strauss Point Process Model
Kinhom

Inhomogeneous K-function
runifpoint

Generate N Uniform Random Points
Ord

Generic Ord Interaction model
inside.owin

Test Whether Points Are Inside A Window
intersect.owin

Intersection or Union of Two Windows
affine.owin

Apply Affine Transformation To Window
MultiStrauss

The Multitype Strauss Point Process Model
plot.splitppp

Plot a List of Point Patterns
Kest

K-function
is.marked

Test Whether Marks Are Present
quadscheme

Generate a Quadrature Scheme from a Point Pattern
nztrees

New Zealand Trees Point Pattern
hamster

Aherne's hamster tumour data
StraussHard

The Strauss / Hard Core Point Process Model
as.ppp

Convert Data To Class ppp
ppm

Fit Point Process Model to Data
plot.owin

Plot a Spatial Window
coef.ppm

Coefficients of Fitted Point Process Model
longleaf

Longleaf Pines Point Pattern
plot.fasp

Plot a Function Array
nearest.raster.point

Find Pixel Nearest to a Given Point
summary.owin

Summary of a Spatial Window
demopat

Artificial Data Point Pattern
ord.family

Ord Interaction Process Family
concatxy

Concatenate x,y Coordinate Vectors
Pairwise

Generic Pairwise Interaction model
plot.ppm

plot a Fitted Point Process Model
rMaternII

Simulate Matern Model II
spatstat-internal

Internal spatstat functions
corners

Corners of a rectangle
fv.object

Data Frames of Function Values
is.owin

Test Whether An Object Is A Window
Saturated

Saturated Pairwise Interaction model
reduced.sample

Reduced Sample Estimator using Histogram Data
rMaternI

Simulate Matern Model I
subset.fasp

Extract Subset of Function Array
rotate.ppp

Rotate a Point Pattern
shift.ppp

Apply Vector Translation To Point Pattern
is.ppm

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

Update a Fitted Point Process Model
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
plot.fv

Plot Function Valuesn
print.ppp

Print Brief Details of a Point Pattern Dataset
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
Gest

Nearest Neighbour Distance Function G
is.ppp

Test Whether An Object Is A Point Pattern
raster.x

Cartesian Coordinates for a Pixel Raster
summary.quad

Summarizing a Quadrature Scheme
rmh.ppm

Simulate from a Fitted Point Process Model
gridweights

Compute Quadrature Weights Based on Grid Counts
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
spokes

Spokes pattern of dummy points
rpoint

Generate N Random Points
rmpoint

Generate N Random Multitype Points
plot.plotppm

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

Print a Fitted Point Process Model
subset.ppp

Extract or Replace Subset of Point Pattern
subset.im

Extract Subset of Image
rotate.owin

Rotate a Window
subset.fv

Extract Subset of Function Values
summary.im

Summarizing a Pixel Image
square

Square Window
summary.ppm

Summarizing a Fitted Point Process Model