Learn R Programming

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

spatstat (version 1.5-9)

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,015

Version

1.5-9

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.5-9)

Gest

Nearest Neighbour Distance Function G
Kmeasure

Reduced Second Moment Measure
bramblecanes

Hutchings' Bramble Canes data
gridcentres

Rectangular grid of points
Kdot

Multitype K Function (i-to-any)
Strauss

The Strauss Point Process Model
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
LennardJones

The Lennard-Jones Potential
distmap.owin

Distance Map of Window
Kinhom

Inhomogeneous K-function
is.marked

Test Whether Marks Are Present
runifpoint

Generate N Uniform Random Points
subset.im

Extract Subset of Image
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
cells

Biological Cells Point Pattern
square

Square Window
plot.owin

Plot a Spatial Window
ppm.object

Class of Fitted Point Process Models
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
coef.ppm

Coefficients of Fitted Point Process Model
concatxy

Concatenate x,y Coordinate Vectors
is.im

Test Whether An Object Is A Pixel Image
eroded.areas

Areas of Morphological Erosions
pairdist

Pairwise distances
im

Create a Pixel Image Object
is.marked.ppp

Test Whether A Point Pattern is Marked
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
nndist

Nearest neighbour distances
rNeymanScott

Simulate Neyman-Scott Process
DiggleGratton

Diggle-Gratton model
Poisson

Poisson Point Process Model
Ord

Generic Ord Interaction model
OrdThresh

Ord's Interaction model
Gdot

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

Lansing Woods Point Pattern
rMaternII

Simulate Matern Model II
Softcore

The Soft Core Point Process Model
print.ppm

Print a Fitted Point Process Model
pairwise.family

Pairwise Interaction Process Family
setcov

Set Covariance of a Window
rmh.default

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

Diameter of a Window Frame
rThomas

Simulate Thomas Process
as.im

Convert to Pixel Image
spokes

Spokes pattern of dummy points
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
markcorr

Mark Correlation Function
affine

Apply Affine Transformation
as.mask

Pixel Image Approximation of a Window
distmap

Distance Map
bounding.box

Bounding Box of a Window
Geyer

Geyer's Saturation Point Process Model
affine.owin

Apply Affine Transformation To Window
plot.fv

Plot Function Valuesn
shift.im

Apply Vector Translation To Pixel Image
ppm

Fit Point Process Model to Data
complement.owin

Take Complement of a Window
raster.x

Cartesian Coordinates for a Pixel Raster
scanpp

Read Point Pattern From Data File
union.quad

Union of Data and Dummy Points
identify.ppp

Identify Points in a Point Pattern
erode.owin

Erode a Window
MultiStrauss

The Multitype Strauss Point Process Model
superimpose

Superimpose Several Point Patterns
is.owin

Test Whether An Object Is A Window
subset.fv

Extract Subset of Function Values
update.ppm

Update a Fitted Point Process Model
subset.ppp

Extract or Replace Subset of Point Pattern
Fest

Estimate the empty space function F
as.ppp

Convert Data To Class ppp
copper

Berman-Huntington points and lines data
Jmulti

Marked J Function
rMaternI

Simulate Matern Model I
fv.object

Data Frames of Function Values
stratrand

Stratified random point pattern
bdist.pixels

Distance to Boundary of Window
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
spatstat-deprecated

Deprecated spatstat functions
is.ppp

Test Whether An Object Is A Point Pattern
rSSI

Simple Sequential Inhibition
distmap.ppp

Distance Map of Point Pattern
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
inside.owin

Test Whether Points Are Inside A Window
summary.owin

Summary of a Spatial Window
Saturated

Saturated Pairwise Interaction model
Kest

K-function
spatstat-internal

Internal spatstat functions
centroid.owin

Centroid of a window
owin

Create a Window
simdat

Simulated Point Pattern
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
Jcross

Multitype J Function (i-to-j)
data.ppm

Extract Original Data from a Fitted Point Process Model
is.subset.owin

Determine Whether One Window is Contained In Another
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
owin.object

Class owin
demopat

Artificial Data Point Pattern
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
finpines

Pine saplings in Finland.
fasp.object

Function Arrays for Spatial Patterns
Pairwise

Generic Pairwise Interaction model
pcf

Pair Correlation Function
predict.ppm

Prediction from a Fitted Point Process Model
fitted.ppm

Fitted Conditional Intensity for Point Process Model
rmpoint

Generate N Random Multitype Points
longleaf

Longleaf Pines Point Pattern
nztrees

New Zealand Trees Point Pattern
ord.family

Ord Interaction Process Family
allstats

Calculate four standard summary functions of a point pattern.
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
japanesepines

Japanese Pines Point Pattern
nearest.raster.point

Find Pixel Nearest to a Given Point
affine.ppp

Apply Affine Transformation To Point Pattern
Jest

Estimate the J-function
redwood

California Redwoods Point Pattern (Ripley's Subset)
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
area.owin

Area of a Window
default.dummy

Generate a Default Pattern of Dummy Points
summary.ppp

Summary of a Point Pattern Dataset
print.quad

Print a Quadrature Scheme
rotate.owin

Rotate a Window
Kcross

Multitype K Function (Cross-type)
Jdot

Multitype J Function (i-to-any)
as.rectangle

Window Frame
summary.ppm

Summarizing a Fitted Point Process Model
plot.plotppm

Plot a plotppm Object Created by plot.ppm
Kest.fft

K-function using FFT
Gmulti

Marked Nearest Neighbour Distance Function
StraussHard

The Strauss / Hard Core Point Process Model
bdist.points

Distance to Boundary of Window
amacrine

Hughes' Amacrine Cell Data
plot.quad

plot a Spatial Quadrature Scheme
Kmulti

Marked K-Function
plot.im

Plot a Pixel Image
betacells

Beta Ganglion Cells in Cat Retina
ppp

Create a Point Pattern
as.owin

Convert Data To Class owin
hamster

Aherne's hamster tumour data
reduced.sample

Reduced Sample Estimator using Histogram Data
rpoint

Generate N Random Points
ppp.object

Class of Point Patterns
unmark

Remove Marks from a Marked Point Pattern
gridweights

Compute Quadrature Weights Based on Grid Counts
rMatClust

Simulate Matern Cluster Process
plot.splitppp

Plot a List of Point Patterns
ripras

Estimate window from points alone
is.marked.ppm

Test Whether A Point Process Model is Marked
anova.ppm

ANOVA for Fitted Point Process Models
spruces

Spruces Point Pattern
intersect.owin

Intersection or Union of Two Windows
summary.im

Summarizing a Pixel Image
shift.owin

Apply Vector Translation To Window
rpoispp

Generate Poisson Point Pattern
rmpoispp

Generate Multitype Poisson Point Pattern
plot.ppp

plot a Spatial Point Pattern
summary.quad

Summarizing a Quadrature Scheme
split.ppp

Divide Point Pattern into Sub-patterns
rotate.ppp

Rotate a Point Pattern
harmonic

Basis for Harmonic Functions
print.owin

Print Brief Details of a Spatial Window
corners

Corners of a rectangle
plot.fasp

Plot a Function Array
plot.ppm

plot a Fitted Point Process Model
print.im

Print Brief Details of an Image
swedishpines

Swedish Pines Point Pattern
im.object

Class of Images
is.ppm

Test Whether An Object Is A Fitted Point Process Model
pairsat.family

Saturated Pairwise Interaction Point Process Family
letterR

Window in Shape of Letter R
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
print.ppp

Print Brief Details of a Point Pattern Dataset
rmh.ppm

Simulate from a Fitted Point Process Model
quadscheme

Generate a Quadrature Scheme from a Point Pattern
shift.ppp

Apply Vector Translation To Point Pattern
quad.object

Class of Quadrature Schemes
rotate

Rotate
setmarks

Set or Reset the Marks in a Point Pattern
shift

Apply Vector Translation
spatstat.options

Internal Options in Spatstat Package
subset.fasp

Extract Subset of Function Array