Learn R Programming

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

spatstat (version 1.5-5)

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

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.5-5)

quadscheme

Generate a Quadrature Scheme from a Point Pattern
Jdot

Multitype J Function (i-to-any)
betacells

Beta Ganglion Cells in Cat Retina
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
is.im

Test Whether An Object Is A Pixel Image
Jest

Estimate the J-function
Gcross

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

Estimate the empty space function F
Gest

Nearest Neighbour Distance Function G
Kinhom

Inhomogeneous K-function
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
hamster

Aherne's hamster tumour data
update.ppm

Update a Fitted Point Process Model
fv.object

Data Frames of Function Values
summary.owin

Summary of a Spatial Window
bounding.box

Bounding Box of a Window
eroded.areas

Areas of Morphological Erosions
setcov

Set Covariance of a Window
LennardJones

The Lennard-Jones Potential
OrdThresh

Ord's Interaction model
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
bdist.pixels

Distance to Boundary of Window
Saturated

Saturated Pairwise Interaction model
pairsat.family

Saturated Pairwise Interaction Point Process Family
plot.plotppm

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

Convert to Pixel Image
Gmulti

Marked Nearest Neighbour Distance Function
Kest

K-function
identify.ppp

Identify Points in a Point Pattern
is.marked

Test Whether Marks Are Present
Kcross

Multitype K Function (Cross-type)
is.marked.ppp

Test Whether A Point Pattern is Marked
im

Create a Pixel Image Object
concatxy

Concatenate x,y Coordinate Vectors
shift.im

Apply Vector Translation To Pixel Image
affine

Apply Affine Transformation
Pairwise

Generic Pairwise Interaction model
area.owin

Area of a Window
amacrine

Hughes' Amacrine Cell Data
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
longleaf

Longleaf Pines Point Pattern
rMaternII

Simulate Matern Model II
shift.ppp

Apply Vector Translation To Point Pattern
letterR

Window in Shape of Letter R
copper

Berman-Huntington points and lines data
as.mask

Pixel Image Approximation of a Window
predict.ppm

Prediction from a Fitted Point Process Model
plot.fv

Plot Function Valuesn
fasp.object

Function Arrays for Spatial Patterns
coef.ppm

Coefficients of Fitted Point Process Model
StraussHard

The Strauss / Hard Core Point Process Model
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
intersect.owin

Intersection or Union of Two Windows
ppm

Fit Point Process Model to Data
Jcross

Multitype J Function (i-to-j)
finpines

Pine saplings in Finland.
as.rectangle

Window Frame
corners

Corners of a rectangle
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
bramblecanes

Hutchings' Bramble Canes data
rmh.ppm

Simulate from a Fitted Point Process Model
centroid.owin

Centroid of a window
markcorr

Mark Correlation Function
spruces

Spruces Point Pattern
distmap.owin

Distance Map of Window
is.owin

Test Whether An Object Is A Window
rmpoint

Generate N Random Multitype Points
Kmeasure

Reduced Second Moment Measure
rMaternI

Simulate Matern Model I
affine.owin

Apply Affine Transformation To Window
harmonic

Basis for Harmonic Functions
summary.quad

Summarizing a Quadrature Scheme
gridcentres

Rectangular grid of points
MultiStrauss

The Multitype Strauss Point Process Model
as.ppp

Convert Data To Class ppp
Strauss

The Strauss Point Process Model
DiggleGratton

Diggle-Gratton model
im.object

Class of Images
summary.im

Summarizing a Pixel Image
rpoispp

Generate Poisson Point Pattern
plot.owin

Plot a Spatial Window
Jmulti

Marked J Function
data.ppm

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

Determine Whether One Window is Contained In Another
is.ppp

Test Whether An Object Is A Point Pattern
shift.owin

Apply Vector Translation To Window
split.ppp

Divide Point Pattern into Sub-patterns
diameter

Diameter of a Window Frame
owin.object

Class owin
ord.family

Ord Interaction Process Family
japanesepines

Japanese Pines Point Pattern
bdist.points

Distance to Boundary of Window
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
Ord

Generic Ord Interaction model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
distmap.ppp

Distance Map of Point Pattern
cells

Biological Cells Point Pattern
print.quad

Print a Quadrature Scheme
Kmulti

Marked K-Function
quad.object

Class of Quadrature Schemes
ripras

Estimate window from points alone
Poisson

Poisson Point Process Model
spatstat.options

Internal Options in Spatstat Package
rmh

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

Rotate a Point Pattern
spatstat-deprecated

Deprecated spatstat functions
gridweights

Compute Quadrature Weights Based on Grid Counts
as.owin

Convert Data To Class owin
union.quad

Union of Data and Dummy Points
setmarks

Set or Reset the Marks in a Point Pattern
spokes

Spokes pattern of dummy points
swedishpines

Swedish Pines Point Pattern
Softcore

The Soft Core Point Process Model
distmap

Distance Map
spatstat-internal

Internal spatstat functions
nearest.raster.point

Find Pixel Nearest to a Given Point
rMatClust

Simulate Matern Cluster Process
default.dummy

Generate a Default Pattern of Dummy Points
Geyer

Geyer's Saturation Point Process Model
owin

Create a Window
affine.ppp

Apply Affine Transformation To Point Pattern
plot.ppm

plot a Fitted Point Process Model
print.im

Print Brief Details of an Image
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
ppm.object

Class of Fitted Point Process Models
summary.ppp

Summary of a Point Pattern Dataset
unmark

Remove Marks from a Marked Point Pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
rmpoispp

Generate Multitype Poisson Point Pattern
lansing

Lansing Woods Point Pattern
nndist

Nearest neighbour distances
rotate

Rotate
subset.im

Extract Subset of Image
runifpoint

Generate N Uniform Random Points
allstats

Calculate four standard summary functions of a point pattern.
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
plot.fasp

Plot a Function Array
plot.quad

plot a Spatial Quadrature Scheme
pcf

Pair Correlation Function
rpoint

Generate N Random Points
erode.owin

Erode a Window
simdat

Simulated Point Pattern
plot.splitppp

Plot a List of Point Patterns
pairwise.family

Pairwise Interaction Process Family
quad.ppm

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

Take Complement of a Window
Kest.fft

K-function using FFT
inside.owin

Test Whether Points Are Inside A Window
print.ppm

Print a Fitted Point Process Model
nztrees

New Zealand Trees Point Pattern
summary.ppm

Summarizing a Fitted Point Process Model
plot.ppp

plot a Spatial Point Pattern
demopat

Artificial Data Point Pattern
is.marked.ppm

Test Whether A Point Process Model is Marked
reduced.sample

Reduced Sample Estimator using Histogram Data
ppp

Create a Point Pattern
rNeymanScott

Simulate Neyman-Scott Process
Kdot

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

Test Whether An Object Is A Fitted Point Process Model
pairdist

Pairwise distances
subset.fv

Extract Subset of Function Values
redwood

California Redwoods Point Pattern (Ripley's Subset)
raster.x

Cartesian Coordinates for a Pixel Raster
ppp.object

Class of Point Patterns
stratrand

Stratified random point pattern
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
subset.fasp

Extract Subset of Function Array
rotate.owin

Rotate a Window
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
shift

Apply Vector Translation
print.ppp

Print Brief Details of a Point Pattern Dataset
scanpp

Read Point Pattern From Data File
rSSI

Simple Sequential Inhibition
rThomas

Simulate Thomas Process
print.owin

Print Brief Details of a Spatial Window
square

Square Window
subset.ppp

Extract or Replace Subset of Point Pattern
superimpose

Superimpose Several Point Patterns