Learn R Programming

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

spatstat (version 1.5-10)

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

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.5-10)

Gest

Nearest Neighbour Distance Function G
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
Pairwise

Generic Pairwise Interaction model
distmap.owin

Distance Map of Window
finpines

Pine saplings in Finland.
affine.owin

Apply Affine Transformation To Window
bdist.pixels

Distance to Boundary of Window
affine.ppp

Apply Affine Transformation To Point Pattern
identify.ppp

Identify Points in a Point Pattern
as.im

Convert to Pixel Image
Poisson

Poisson Point Process Model
affine

Apply Affine Transformation
bounding.box

Bounding Box of a Window
Jcross

Multitype J Function (i-to-j)
nndist

Nearest neighbour distances
as.ppp

Convert Data To Class ppp
MultiStrauss

The Multitype Strauss Point Process Model
Kmeasure

Reduced Second Moment Measure
hamster

Aherne's hamster tumour data
rSSI

Simple Sequential Inhibition
predict.ppm

Prediction from a Fitted Point Process Model
Kest

K-function
Ord

Generic Ord Interaction model
plot.splitppp

Plot a List of Point Patterns
is.subset.owin

Determine Whether One Window is Contained In Another
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
diameter

Diameter of a Window Frame
owin.object

Class owin
as.rectangle

Window Frame
quadscheme

Generate a Quadrature Scheme from a Point Pattern
is.ppm

Test Whether An Object Is A Fitted Point Process Model
harmonic

Basis for Harmonic Functions
subset.im

Extract Subset of Image
shift

Apply Vector Translation
japanesepines

Japanese Pines Point Pattern
inside.owin

Test Whether Points Are Inside A Window
is.marked

Test Whether Marks Are Present
Kdot

Multitype K Function (i-to-any)
summary.quad

Summarizing a Quadrature Scheme
LennardJones

The Lennard-Jones Potential
plot.owin

Plot a Spatial Window
summary.ppm

Summarizing a Fitted Point Process Model
ppm.object

Class of Fitted Point Process Models
lansing

Lansing Woods Point Pattern
Saturated

Saturated Pairwise Interaction model
redwood

California Redwoods Point Pattern (Ripley's Subset)
spokes

Spokes pattern of dummy points
demopat

Artificial Data Point Pattern
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
rpoint

Generate N Random Points
shift.owin

Apply Vector Translation To Window
data.ppm

Extract Original Data from a Fitted Point Process Model
fasp.object

Function Arrays for Spatial Patterns
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
is.owin

Test Whether An Object Is A Window
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
ord.family

Ord Interaction Process Family
pairsat.family

Saturated Pairwise Interaction Point Process Family
split.ppp

Divide Point Pattern into Sub-patterns
Fest

Estimate the empty space function F
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
area.owin

Area of a Window
gridcentres

Rectangular grid of points
fv.object

Data Frames of Function Values
summary.owin

Summary of a Spatial Window
nearest.raster.point

Find Pixel Nearest to a Given Point
as.mask

Pixel Image Approximation of a Window
rMaternI

Simulate Matern Model I
im.object

Class of Images
pairdist

Pairwise distances
runifpoint

Generate N Uniform Random Points
anova.ppm

ANOVA for Fitted Point Process Models
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
centroid.owin

Centroid of a window
DiggleGratton

Diggle-Gratton model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
print.ppm

Print a Fitted Point Process Model
cells

Biological Cells Point Pattern
distmap

Distance Map
as.owin

Convert Data To Class owin
letterR

Window in Shape of Letter R
update.ppm

Update a Fitted Point Process Model
stratrand

Stratified random point pattern
owin

Create a Window
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
markcorr

Mark Correlation Function
superimpose

Superimpose Several Point Patterns
plot.fv

Plot Function Valuesn
plot.quad

plot a Spatial Quadrature Scheme
raster.x

Cartesian Coordinates for a Pixel Raster
scanpp

Read Point Pattern From Data File
allstats

Calculate four standard summary functions of a point pattern.
im

Create a Pixel Image Object
shift.im

Apply Vector Translation To Pixel Image
ppp.object

Class of Point Patterns
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
rmh.ppm

Simulate from a Fitted Point Process Model
spruces

Spruces Point Pattern
Jdot

Multitype J Function (i-to-any)
quad.object

Class of Quadrature Schemes
setcov

Set Covariance of a Window
bdist.points

Distance to Boundary of Window
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
summary.ppp

Summary of a Point Pattern Dataset
rotate.owin

Rotate a Window
ppm

Fit Point Process Model to Data
Jest

Estimate the J-function
erode.owin

Erode a Window
subset.fv

Extract Subset of Function Values
is.ppp

Test Whether An Object Is A Point Pattern
unmark

Remove Marks from a Marked Point Pattern
swedishpines

Swedish Pines Point Pattern
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
StraussHard

The Strauss / Hard Core Point Process Model
square

Square Window
subset.ppp

Extract or Replace Subset of Point Pattern
Kcross

Multitype K Function (Cross-type)
rNeymanScott

Simulate Neyman-Scott Process
Kmulti

Marked K-Function
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
corners

Corners of a rectangle
OrdThresh

Ord's Interaction model
Strauss

The Strauss Point Process Model
print.im

Print Brief Details of an Image
eroded.areas

Areas of Morphological Erosions
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
coef.ppm

Coefficients of Fitted Point Process Model
is.marked.ppm

Test Whether A Point Process Model is Marked
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
rotate

Rotate
union.quad

Union of Data and Dummy Points
default.dummy

Generate a Default Pattern of Dummy Points
spatstat-deprecated

Deprecated spatstat functions
pairwise.family

Pairwise Interaction Process Family
plot.im

Plot a Pixel Image
setmarks

Set or Reset the Marks in a Point Pattern
ripras

Estimate window from points alone
print.ppp

Print Brief Details of a Point Pattern Dataset
longleaf

Longleaf Pines Point Pattern
Gmulti

Marked Nearest Neighbour Distance Function
Kinhom

Inhomogeneous K-function
Kest.fft

K-function using FFT
rmpoint

Generate N Random Multitype Points
rotate.ppp

Rotate a Point Pattern
rThomas

Simulate Thomas Process
amacrine

Hughes' Amacrine Cell Data
complement.owin

Take Complement of a Window
bramblecanes

Hutchings' Bramble Canes data
spatstat-internal

Internal spatstat functions
intersect.owin

Intersection or Union of Two Windows
Softcore

The Soft Core Point Process Model
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
simdat

Simulated Point Pattern
distmap.ppp

Distance Map of Point Pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
plot.plotppm

Plot a plotppm Object Created by plot.ppm
is.marked.ppp

Test Whether A Point Pattern is Marked
shift.ppp

Apply Vector Translation To Point Pattern
betacells

Beta Ganglion Cells in Cat Retina
copper

Berman-Huntington points and lines data
Jmulti

Marked J Function
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
nztrees

New Zealand Trees Point Pattern
plot.ppp

plot a Spatial Point Pattern
concatxy

Concatenate x,y Coordinate Vectors
gridweights

Compute Quadrature Weights Based on Grid Counts
pcf

Pair Correlation Function
rMatClust

Simulate Matern Cluster Process
Geyer

Geyer's Saturation Point Process Model
is.im

Test Whether An Object Is A Pixel Image
spatstat.options

Internal Options in Spatstat Package
rpoispp

Generate Poisson Point Pattern
plot.fasp

Plot a Function Array
ppp

Create a Point Pattern
print.owin

Print Brief Details of a Spatial Window
print.quad

Print a Quadrature Scheme
reduced.sample

Reduced Sample Estimator using Histogram Data
subset.fasp

Extract Subset of Function Array
plot.ppm

plot a Fitted Point Process Model
rmpoispp

Generate Multitype Poisson Point Pattern
rMaternII

Simulate Matern Model II
summary.im

Summarizing a Pixel Image