Learn R Programming

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

spatstat (version 1.6-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.6-3

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.6-3)

area.owin

Area of a Window
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
finpines

Pine saplings in Finland.
gridcentres

Rectangular grid of points
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
unmark

Remove Marks from a Marked Point Pattern
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
allstats

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

Convert Data To Class owin
bounding.box

Bounding Box of a Window
expand.owin

Expand Window By Factor
distmap.ppp

Distance Map of Point Pattern
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
nndist

Nearest neighbour distances
Kmeasure

Reduced Second Moment Measure
as.im

Convert to Pixel Image
pcf

Pair Correlation Function
update.ppm

Update a Fitted Point Process Model
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
intersect.owin

Intersection or Union of Two Windows
markcorr

Mark Correlation Function
plot.ppm

plot a Fitted Point Process Model
plot.fv

Plot Function Valuesn
plot.plotppm

Plot a plotppm Object Created by plot.ppm
Gcross

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

Estimate the empty space function F
rMaternII

Simulate Matern Model II
cells

Biological Cells Point Pattern
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
plot.splitppp

Plot a List of Point Patterns
rNeymanScott

Simulate Neyman-Scott Process
Softcore

The Soft Core Point Process Model
print.quad

Print a Quadrature Scheme
concatxy

Concatenate x,y Coordinate Vectors
superimpose

Superimpose Several Point Patterns
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
Strauss

The Strauss Point Process Model
pairsat.family

Saturated Pairwise Interaction Point Process Family
Geyer

Geyer's Saturation Point Process Model
diameter

Diameter of a Window Frame
inside.owin

Test Whether Points Are Inside A Window
default.dummy

Generate a Default Pattern of Dummy Points
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
Ord

Generic Ord Interaction model
as.rectangle

Window Frame
summary.im

Summarizing a Pixel Image
distmap

Distance Map
crossdist

Pairwise distances between two different point patterns
summary.ppp

Summary of a Point Pattern Dataset
affine.owin

Apply Affine Transformation To Window
demopat

Artificial Data Point Pattern
Kcross

Multitype K Function (Cross-type)
bdist.pixels

Distance to Boundary of Window
setcov

Set Covariance of a Window
ppm.object

Class of Fitted Point Process Models
erode.owin

Erode a Window
Jmulti

Marked J Function
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
is.owin

Test Whether An Object Is A Window
is.im

Test Whether An Object Is A Pixel Image
ord.family

Ord Interaction Process Family
pairdist

Pairwise distances
lansing

Lansing Woods Point Pattern
Gest

Nearest Neighbour Distance Function G
affine

Apply Affine Transformation
letterR

Window in Shape of Letter R
OrdThresh

Ord's Interaction model
anova.ppm

ANOVA for Fitted Point Process Models
ripras

Estimate window from points alone
harmonic

Basis for Harmonic Functions
copper

Berman-Huntington points and lines data
MultiStrauss

The Multitype Strauss Point Process Model
coef.ppm

Coefficients of Fitted Point Process Model
reach

Interaction Distance of a Point Process
owin

Create a Window
Poisson

Poisson Point Process Model
LennardJones

The Lennard-Jones Potential
nearest.raster.point

Find Pixel Nearest to a Given Point
plot.owin

Plot a Spatial Window
bdist.points

Distance to Boundary of Window
rotate.owin

Rotate a Window
runifpoint

Generate N Uniform Random Points
redwood

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

Deprecated spatstat functions
is.marked.ppm

Test Whether A Point Process Model is Marked
bramblecanes

Hutchings' Bramble Canes data
owin.object

Class owin
japanesepines

Japanese Pines Point Pattern
subset.fasp

Extract Subset of Function Array
simdat

Simulated Point Pattern
is.marked.ppp

Test Whether A Point Pattern is Marked
Jcross

Multitype J Function (i-to-j)
ppp.object

Class of Point Patterns
quadscheme

Generate a Quadrature Scheme from a Point Pattern
Kest

K-function
Gmulti

Marked Nearest Neighbour Distance Function
Kdot

Multitype K Function (i-to-any)
fitted.ppm

Fitted Conditional Intensity for Point Process Model
im.object

Class of Images
affine.ppp

Apply Affine Transformation To Point Pattern
eroded.areas

Areas of Morphological Erosions
print.owin

Print Brief Details of a Spatial Window
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
plot.quad

plot a Spatial Quadrature Scheme
union.quad

Union of Data and Dummy Points
shift.owin

Apply Vector Translation To Window
rThomas

Simulate Thomas Process
print.ppp

Print Brief Details of a Point Pattern Dataset
shift.ppp

Apply Vector Translation To Point Pattern
scanpp

Read Point Pattern From Data File
rmpoint

Generate N Random Multitype Points
plot.fasp

Plot a Function Array
swedishpines

Swedish Pines Point Pattern
predict.ppm

Prediction from a Fitted Point Process Model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
spatstat-internal

Internal spatstat functions
setmarks

Set or Reset the Marks in a Point Pattern
rpoint

Generate N Random Points
spokes

Spokes pattern of dummy points
gridweights

Compute Quadrature Weights Based on Grid Counts
rotate

Rotate
reduced.sample

Reduced Sample Estimator using Histogram Data
hamster

Aherne's hamster tumour data
rmh.ppm

Simulate from a Fitted Point Process Model
ppm

Fit Point Process Model to Data
summary.quad

Summarizing a Quadrature Scheme
raster.x

Cartesian Coordinates for a Pixel Raster
nztrees

New Zealand Trees Point Pattern
plot.ppp

plot a Spatial Point Pattern
subset.fv

Extract Subset of Function Values
stratrand

Stratified random point pattern
rotate.ppp

Rotate a Point Pattern
summary.owin

Summary of a Spatial Window
rescue.rectangle

Convert Window Back To Rectangle
split.ppp

Divide Point Pattern into Sub-patterns
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
Jest

Estimate the J-function
Kest.fft

K-function using FFT
Kmulti

Marked K-Function
corners

Corners of a rectangle
is.subset.owin

Determine Whether One Window is Contained In Another
fv.object

Data Frames of Function Values
as.mask

Pixel Image Approximation of a Window
fasp.object

Function Arrays for Spatial Patterns
DiggleGratton

Diggle-Gratton model
plot.im

Plot a Pixel Image
Pairwise

Generic Pairwise Interaction model
longleaf

Longleaf Pines Point Pattern
print.im

Print Brief Details of an Image
as.ppp

Convert Data To Class ppp
print.ppm

Print a Fitted Point Process Model
square

Square Window
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
subset.ppp

Extract or Replace Subset of Point Pattern
Saturated

Saturated Pairwise Interaction model
complement.owin

Take Complement of a Window
im

Create a Pixel Image Object
data.ppm

Extract Original Data from a Fitted Point Process Model
amacrine

Hughes' Amacrine Cell Data
betacells

Beta Ganglion Cells in Cat Retina
distmap.owin

Distance Map of Window
quad.object

Class of Quadrature Schemes
rMaternI

Simulate Matern Model I
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
is.ppm

Test Whether An Object Is A Fitted Point Process Model
identify.ppp

Identify Points in a Point Pattern
is.marked

Test Whether Marks Are Present
Jdot

Multitype J Function (i-to-any)
Kinhom

Inhomogeneous K-function
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
pairwise.family

Pairwise Interaction Process Family
shift

Apply Vector Translation
rpoispp

Generate Poisson Point Pattern
is.ppp

Test Whether An Object Is A Point Pattern
spruces

Spruces Point Pattern
centroid.owin

Centroid of a window
StraussHard

The Strauss / Hard Core Point Process Model
rMatClust

Simulate Matern Cluster Process
summary.ppm

Summarizing a Fitted Point Process Model
subset.im

Extract Subset of Image
ppp

Create a Point Pattern
shift.im

Apply Vector Translation To Pixel Image
rSSI

Simple Sequential Inhibition
rmpoispp

Generate Multitype Poisson Point Pattern
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
spatstat.options

Internal Options in Spatstat Package