Learn R Programming

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

spatstat (version 1.5-6)

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

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.5-6)

Kmulti

Marked K-Function
Fest

Estimate the empty space function F
as.im

Convert to Pixel Image
as.owin

Convert Data To Class owin
Jdot

Multitype J Function (i-to-any)
Kcross

Multitype K Function (Cross-type)
bdist.pixels

Distance to Boundary of Window
betacells

Beta Ganglion Cells in Cat Retina
rSSI

Simple Sequential Inhibition
affine

Apply Affine Transformation
hamster

Aherne's hamster tumour data
centroid.owin

Centroid of a window
as.rectangle

Window Frame
rThomas

Simulate Thomas Process
pairwise.family

Pairwise Interaction Process Family
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
spatstat-internal

Internal spatstat functions
DiggleGratton

Diggle-Gratton model
gridcentres

Rectangular grid of points
eroded.areas

Areas of Morphological Erosions
plot.ppp

plot a Spatial Point Pattern
Gmulti

Marked Nearest Neighbour Distance Function
plot.owin

Plot a Spatial Window
summary.ppp

Summary of a Point Pattern Dataset
split.ppp

Divide Point Pattern into Sub-patterns
plot.quad

plot a Spatial Quadrature Scheme
Jmulti

Marked J Function
Kest.fft

K-function using FFT
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
coef.ppm

Coefficients of Fitted Point Process Model
ppm.object

Class of Fitted Point Process Models
Kmeasure

Reduced Second Moment Measure
Gest

Nearest Neighbour Distance Function G
as.ppp

Convert Data To Class ppp
bdist.points

Distance to Boundary of Window
bounding.box

Bounding Box of a Window
affine.owin

Apply Affine Transformation To Window
erode.owin

Erode a Window
Softcore

The Soft Core Point Process Model
Kest

K-function
demopat

Artificial Data Point Pattern
data.ppm

Extract Original Data from a Fitted Point Process Model
distmap.owin

Distance Map of Window
im

Create a Pixel Image Object
pcf

Pair Correlation Function
square

Square Window
subset.im

Extract Subset of Image
rpoint

Generate N Random Points
intersect.owin

Intersection or Union of Two Windows
spatstat.options

Internal Options in Spatstat Package
rmh.ppm

Simulate from a Fitted Point Process Model
rmh

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

Convert Point Pattern Marks from Numeric to Factor
OrdThresh

Ord's Interaction model
is.owin

Test Whether An Object Is A Window
copper

Berman-Huntington points and lines data
ripras

Estimate window from points alone
nztrees

New Zealand Trees Point Pattern
cells

Biological Cells Point Pattern
Geyer

Geyer's Saturation Point Process Model
ppp

Create a Point Pattern
area.owin

Area of a Window
distmap

Distance Map
raster.x

Cartesian Coordinates for a Pixel Raster
Jcross

Multitype J Function (i-to-j)
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
plot.fasp

Plot a Function Array
spruces

Spruces Point Pattern
print.quad

Print a Quadrature Scheme
owin

Create a Window
longleaf

Longleaf Pines Point Pattern
unmark

Remove Marks from a Marked Point Pattern
complement.owin

Take Complement of a Window
amacrine

Hughes' Amacrine Cell Data
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
lansing

Lansing Woods Point Pattern
corners

Corners of a rectangle
LennardJones

The Lennard-Jones Potential
Strauss

The Strauss Point Process Model
inside.owin

Test Whether Points Are Inside A Window
rMatClust

Simulate Matern Cluster Process
rNeymanScott

Simulate Neyman-Scott Process
default.dummy

Generate a Default Pattern of Dummy Points
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
is.marked

Test Whether Marks Are Present
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
fitted.ppm

Fitted Conditional Intensity for Point Process Model
plot.splitppp

Plot a List of Point Patterns
print.ppm

Print a Fitted Point Process Model
is.marked.ppm

Test Whether A Point Process Model is Marked
letterR

Window in Shape of Letter R
plot.ppm

plot a Fitted Point Process Model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
quad.object

Class of Quadrature Schemes
rmpoispp

Generate Multitype Poisson Point Pattern
superimpose

Superimpose Several Point Patterns
harmonic

Basis for Harmonic Functions
setmarks

Set or Reset the Marks in a Point Pattern
rotate

Rotate
rMaternII

Simulate Matern Model II
plot.plotppm

Plot a plotppm Object Created by plot.ppm
rMaternI

Simulate Matern Model I
runifpoint

Generate N Uniform Random Points
markcorr

Mark Correlation Function
distmap.ppp

Distance Map of Point Pattern
fasp.object

Function Arrays for Spatial Patterns
nndist

Nearest neighbour distances
fv.object

Data Frames of Function Values
stratrand

Stratified random point pattern
swedishpines

Swedish Pines Point Pattern
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
Kdot

Multitype K Function (i-to-any)
ppm

Fit Point Process Model to Data
quadscheme

Generate a Quadrature Scheme from a Point Pattern
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
print.ppp

Print Brief Details of a Point Pattern Dataset
print.im

Print Brief Details of an Image
Jest

Estimate the J-function
spokes

Spokes pattern of dummy points
pairdist

Pairwise distances
redwood

California Redwoods Point Pattern (Ripley's Subset)
subset.fv

Extract Subset of Function Values
union.quad

Union of Data and Dummy Points
subset.ppp

Extract or Replace Subset of Point Pattern
reduced.sample

Reduced Sample Estimator using Histogram Data
shift.im

Apply Vector Translation To Pixel Image
predict.ppm

Prediction from a Fitted Point Process Model
Pairwise

Generic Pairwise Interaction model
Saturated

Saturated Pairwise Interaction model
rmpoint

Generate N Random Multitype Points
ppp.object

Class of Point Patterns
japanesepines

Japanese Pines Point Pattern
setcov

Set Covariance of a Window
simdat

Simulated Point Pattern
Kinhom

Inhomogeneous K-function
Ord

Generic Ord Interaction model
is.subset.owin

Determine Whether One Window is Contained In Another
concatxy

Concatenate x,y Coordinate Vectors
pairsat.family

Saturated Pairwise Interaction Point Process Family
is.im

Test Whether An Object Is A Pixel Image
is.marked.ppp

Test Whether A Point Pattern is Marked
is.ppm

Test Whether An Object Is A Fitted Point Process Model
subset.fasp

Extract Subset of Function Array
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
im.object

Class of Images
nearest.raster.point

Find Pixel Nearest to a Given Point
shift.owin

Apply Vector Translation To Window
spatstat-deprecated

Deprecated spatstat functions
summary.im

Summarizing a Pixel Image
affine.ppp

Apply Affine Transformation To Point Pattern
allstats

Calculate four standard summary functions of a point pattern.
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
plot.fv

Plot Function Valuesn
summary.owin

Summary of a Spatial Window
owin.object

Class owin
as.mask

Pixel Image Approximation of a Window
MultiStrauss

The Multitype Strauss Point Process Model
Poisson

Poisson Point Process Model
is.ppp

Test Whether An Object Is A Point Pattern
StraussHard

The Strauss / Hard Core Point Process Model
shift.ppp

Apply Vector Translation To Point Pattern
rotate.ppp

Rotate a Point Pattern
bramblecanes

Hutchings' Bramble Canes data
shift

Apply Vector Translation
gridweights

Compute Quadrature Weights Based on Grid Counts
summary.ppm

Summarizing a Fitted Point Process Model
rotate.owin

Rotate a Window
summary.quad

Summarizing a Quadrature Scheme
alltypes

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

Kernel Smoothed Intensity of Point Pattern
ord.family

Ord Interaction Process Family
diameter

Diameter of a Window Frame
update.ppm

Update a Fitted Point Process Model
finpines

Pine saplings in Finland.
print.owin

Print Brief Details of a Spatial Window
identify.ppp

Identify Points in a Point Pattern
rpoispp

Generate Poisson Point Pattern
scanpp

Read Point Pattern From Data File