Learn R Programming

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

spatstat (version 1.5-1)

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

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.5-1)

Gdot

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

Remove Marks from a Marked Point Pattern
Gest

Nearest Neighbour Distance Function G
Kinhom

Inhomogeneous K-function
affine.owin

Apply Affine Transformation To Window
Pairwise

Generic Pairwise Interaction model
StraussHard

The Strauss / Hard Core Point Process Model
Poisson

Poisson Point Process Model
Kdot

Multitype K Function (i-to-any)
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
allstats

Calculate four standard summary functions of a point pattern.
default.dummy

Generate a Default Pattern of Dummy Points
pcf

Pair Correlation Function
bdist.points

Distance to Boundary of Window
Ord

Generic Ord Interaction model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
Gmulti

Marked Nearest Neighbour Distance Function
harmonic

Basis for Harmonic Functions
affine.ppp

Apply Affine Transformation To Point Pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
Strauss

The Strauss Point Process Model
Jest

Estimate the J-function
MultiStrauss

The Multitype Strauss Point Process Model
OrdThresh

Ord's Interaction model
erode.owin

Erode a Window
Geyer

Geyer's Saturation Point Process Model
lansing

Lansing Woods Point Pattern
DiggleGratton

Diggle-Gratton model
affine

Apply Affine Transformation
area.owin

Area of a Window
Kcross

Multitype K Function (Cross-type)
Gcross

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

The Lennard-Jones Potential
Softcore

The Soft Core Point Process Model
Fest

Estimate the empty space function F
complement.owin

Take Complement of a Window
ganglia

Cat Retinal Ganglia Data
Kmeasure

Reduced Second Moment Measure
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
eroded.areas

Areas of Morphological Erosions
Kest

K-function
Jdot

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

Extract Original Data from a Fitted Point Process Model
Jmulti

Marked J Function
Kest.fft

K-function using FFT
print.owin

Print Brief Details of a Spatial Window
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
as.rectangle

Window Frame
concatxy

Concatenate x,y Coordinate Vectors
bounding.box

Bounding Box of a Window
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
bramblecanes

Hutchings' Bramble Canes data
cells

Biological Cells Point Pattern
demopat

Artificial Data Point Pattern
gridweights

Compute Quadrature Weights Based on Grid Counts
coef.ppm

Coefficients of Fitted Point Process Model
gridcentres

Rectangular grid of points
diameter

Diameter of a Window Frame
longleaf

Longleaf Pines Point Pattern
Jcross

Multitype J Function (i-to-j)
nearest.raster.point

Find Pixel Nearest to a Given Point
inside.owin

Test Whether Points Are Inside A Window
ppp

Create a Point Pattern
nztrees

New Zealand Trees Point Pattern
quad.object

Class of Quadrature Schemes
runifpoint

Generate N Uniform Random Points
intersect.owin

Intersection or Union of Two Windows
as.owin

Convert Data To Class owin
Kmulti

Marked K-Function
quadscheme

Generate a Quadrature Scheme from a Point Pattern
centroid.owin

Centroid of a window
raster.x

Cartesian Coordinates for a Pixel Raster
is.im

Test Whether An Object Is A Pixel Image
ord.family

Ord Interaction Process Family
is.ppm

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

Test Whether A Point Pattern is Marked
hamster

Aherne's hamster tumour data
im

Create a Pixel Image Object
markcorr

Mark Correlation Function
rotate.ppp

Rotate a Point Pattern
pairwise.family

Pairwise Interaction Process Family
rMatClust

Simulate Matern Cluster Process
quad.ppm

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

Test Whether An Object Is A Window
is.ppp

Test Whether An Object Is A Point Pattern
Saturated

Saturated Pairwise Interaction model
fv.object

Data Frames of Function Values
rmpoispp

Generate Multitype Poisson Point Pattern
fasp.object

Function Arrays for Spatial Patterns
subset.fv

Extract Subset of Function Values
amacrine

Hughes' Amacrine Cell Data
ppm.object

Class of Fitted Point Process Models
rmpoint

Generate N Random Multitype Points
superimpose

Superimpose Several Point Patterns
pairsat.family

Saturated Pairwise Interaction Point Process Family
subset.ppp

Extract Subset of Point Pattern
subset.im

Extract Subset of Image
is.marked

Test Whether Marks Are Present
plot.fv

Plot Function Valuesn
im.object

Class of Images
bdist.pixels

Distance to Boundary of Window
predict.ppm

Prediction from a Fitted Point Process Model
plot.fasp

Plot a Function Array
spatstat-internal

Internal spatstat functions
as.ppp

Convert Data To Class ppp
as.im

Convert to Pixel Image
owin

Create a Window
plot.quad

plot a Spatial Quadrature Scheme
spatstat.options

Internal Options in Spatstat Package
shift

Apply Vector Translation
summary.ppm

Summarizing a Fitted Point Process Model
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
pairdist

Pairwise distances
is.marked.ppm

Test Whether A Point Process Model is Marked
as.mask

Pixel Image Approximation of a Window
letterR

Window in Shape of Letter R
ppp.object

Class of Point Patterns
print.quad

Print a Quadrature Scheme
spokes

Spokes pattern of dummy points
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
spruces

Spruces Point Pattern
plot.owin

Plot a Spatial Window
distmap.ppp

Distance Map of Point Pattern
plot.plotppm

Plot a plotppm Object Created by plot.ppm
shift.im

Apply Vector Translation To Pixel Image
print.ppp

Print Brief Details of a Point Pattern Dataset
ppm

Fit Point Process Model to Data
square

Square Window
owin.object

Class owin
rThomas

Simulate Thomas Process
rNeymanScott

Simulate Neyman-Scott Process
stratrand

Stratified random point pattern
distmap.owin

Distance Map of Window
betacells

Beta Ganglion Cells in Cat Retina
is.subset.owin

Determine Whether One Window is Contained In Another
union.quad

Union of Data and Dummy Points
rMaternII

Simulate Matern Model II
ripras

Estimate window from points alone
plot.ppp

plot a Spatial Point Pattern
rSSI

Simple Sequential Inhibition
nndist

Nearest neighbour distances
shift.owin

Apply Vector Translation To Window
rpoint

Generate N Random Points
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
plot.ppm

plot a Fitted Point Process Model
identify.ppp

Identify Points in a Point Pattern
swedishpines

Swedish Pines Point Pattern
shift.ppp

Apply Vector Translation To Point Pattern
setmarks

Set or Reset the Marks in a Point Pattern
rmh.ppm

Simulate from a Fitted Point Process Model
rmh.default

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

Generate Poisson Point Pattern
simdat

Simulated Point Pattern
plot.splitppp

Plot a List of Point Patterns
japanesepines

Japanese Pines Point Pattern
corners

Corners of a rectangle
rotate.owin

Rotate a Window
print.im

Print Brief Details of an Image
update.ppm

Update a Fitted Point Process Model
rMaternI

Simulate Matern Model I
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
summary.quad

Summarizing a Quadrature Scheme
anova.ppm

ANOVA for Fitted Point Process Models
summary.im

Summarizing a Pixel Image
print.ppm

Print a Fitted Point Process Model
redwood

California Redwoods Point Pattern (Ripley's Subset)
summary.owin

Summary of a Spatial Window
rotate

Rotate
subset.fasp

Extract Subset of Function Array
split.ppp

Divide Point Pattern into Sub-patterns
distmap

Distance Map
summary.ppp

Summary of a Point Pattern Dataset
plot.im

Plot a Pixel Image
reduced.sample

Reduced Sample Estimator using Histogram Data
setcov

Set Covariance of a Window
scanpp

Read Point Pattern From Data File
finpines

Pine saplings in Finland.
spatstat-deprecated

Deprecated spatstat functions
copper

Berman-Huntington points and lines data