Learn R Programming

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

spatstat (version 1.6-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.6-6

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.6-6)

Gcross

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

The Strauss / Hard Core Point Process Model
as.mask

Pixel Image Approximation of a Window
rMatClust

Simulate Matern Cluster Process
rMaternII

Simulate Matern Model II
Gest

Nearest Neighbour Distance Function G
bdist.pixels

Distance to Boundary of Window
Kest

K-function
MultiStrauss

The Multitype Strauss Point Process Model
betacells

Beta Ganglion Cells in Cat Retina
OrdThresh

Ord's Interaction model
shift.im

Apply Vector Translation To Pixel Image
Kmulti

Marked K-Function
is.marked

Test Whether Marks Are Present
concatxy

Concatenate x,y Coordinate Vectors
diameter

Diameter of a Window Frame
ppp.object

Class of Point Patterns
im

Create a Pixel Image Object
Gmulti

Marked Nearest Neighbour Distance Function
affine.ppp

Apply Affine Transformation To Point Pattern
Poisson

Poisson Point Process Model
Jest

Estimate the J-function
demopat

Artificial Data Point Pattern
subset.fasp

Extract Subset of Function Array
Geyer

Geyer's Saturation Point Process Model
pcf.fv

Pair Correlation Function obtained from K Function
Kinhom

Inhomogeneous K-function
runifpoint

Generate N Uniform Random Points
rSSI

Simple Sequential Inhibition
Jdot

Multitype J Function (i-to-any)
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
reduced.sample

Reduced Sample Estimator using Histogram Data
Kcross

Multitype K Function (Cross-type)
nztrees

New Zealand Trees Point Pattern
cells

Biological Cells Point Pattern
distmap.ppp

Distance Map of Point Pattern
data.ppm

Extract Original Data from a Fitted Point Process Model
affine

Apply Affine Transformation
amacrine

Hughes' Amacrine Cell Data
Kmeasure

Reduced Second Moment Measure
summary.ppp

Summary of a Point Pattern Dataset
area.owin

Area of a Window
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
LennardJones

The Lennard-Jones Potential
Strauss

The Strauss Point Process Model
bramblecanes

Hutchings' Bramble Canes data
nearest.raster.point

Find Pixel Nearest to a Given Point
as.ppp

Convert Data To Class ppp
Softcore

The Soft Core Point Process Model
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
ppm

Fit Point Process Model to Data
distmap

Distance Map
quadscheme

Generate a Quadrature Scheme from a Point Pattern
rThomas

Simulate Thomas Process
pairdist

Pairwise distances
anova.ppm

ANOVA for Fitted Point Process Models
gridweights

Compute Quadrature Weights Based on Grid Counts
allstats

Calculate four standard summary functions of a point pattern.
crossdist

Pairwise distances between two different point patterns
is.marked.ppm

Test Whether A Point Process Model is Marked
affine.owin

Apply Affine Transformation To Window
spatstat.options

Internal Options in Spatstat Package
envelope

Simulation envelopes of summary function
bounding.box

Bounding Box of a Window
finpines

Pine saplings in Finland.
fitted.ppm

Fitted Conditional Intensity for Point Process Model
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
stratrand

Stratified random point pattern
spruces

Spruces Point Pattern
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
ppp

Create a Point Pattern
quadratcount

Quadrat counting for a point pattern
japanesepines

Japanese Pines Point Pattern
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
as.owin

Convert Data To Class owin
centroid.owin

Centroid of a window
split.ppp

Divide Point Pattern into Sub-patterns
Ord

Generic Ord Interaction model
identify.ppp

Identify Points in a Point Pattern
harmonic

Basis for Harmonic Functions
Fest

Estimate the empty space function F
summary.im

Summarizing a Pixel Image
km.rs

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

Summary of a Spatial Window
fv.object

Data Frames of Function Values
letterR

Window in Shape of Letter R
is.marked.ppp

Test Whether A Point Pattern is Marked
plot.ppm

plot a Fitted Point Process Model
fasp.object

Function Arrays for Spatial Patterns
DiggleGratton

Diggle-Gratton model
simdat

Simulated Point Pattern
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
expand.owin

Expand Window By Factor
rpoispp

Generate Poisson Point Pattern
gridcentres

Rectangular grid of points
pcf.fasp

Pair Correlation Function obtained from array of K functions
redwood

California Redwoods Point Pattern (Ripley's Subset)
plot.im

Plot a Pixel Image
raster.x

Cartesian Coordinates for a Pixel Raster
markcorr

Mark Correlation Function
predict.ppm

Prediction from a Fitted Point Process Model
print.owin

Print Brief Details of a Spatial Window
rmh.ppm

Simulate from a Fitted Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
ripras

Estimate window from points alone
setcov

Set Covariance of a Window
rotate.owin

Rotate a Window
setmarks

Set or Reset the Marks in a Point Pattern
print.ppp

Print Brief Details of a Point Pattern Dataset
superimpose

Superimpose Several Point Patterns
rotate

Rotate
hamster

Aherne's hamster tumour data
shift

Apply Vector Translation
shift.owin

Apply Vector Translation To Window
pairsat.family

Saturated Pairwise Interaction Point Process Family
is.subset.owin

Determine Whether One Window is Contained In Another
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
owin.object

Class owin
print.im

Print Brief Details of an Image
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
plot.ppp

plot a Spatial Point Pattern
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
suffstat

Sufficient Statistic of Point Process Model
rNeymanScott

Simulate Neyman-Scott Process
ppm.object

Class of Fitted Point Process Models
owin

Create a Window
subset.im

Extract Subset of Image
print.quad

Print a Quadrature Scheme
Pairwise

Generic Pairwise Interaction model
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
Kdot

Multitype K Function (i-to-any)
spokes

Spokes pattern of dummy points
MultiStraussHard

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

Summarizing a Quadrature Scheme
rotate.ppp

Rotate a Point Pattern
shift.ppp

Apply Vector Translation To Point Pattern
bdist.points

Distance to Boundary of Window
as.rectangle

Window Frame
coef.ppm

Coefficients of Fitted Point Process Model
copper

Berman-Huntington points and lines data
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
as.im

Convert to Pixel Image
Saturated

Saturated Pairwise Interaction model
longleaf

Longleaf Pines Point Pattern
intersect.owin

Intersection or Union of Two Windows
unmark

Remove Marks from a Marked Point Pattern
complement.owin

Take Complement of a Window
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
update.ppm

Update a Fitted Point Process Model
Jcross

Multitype J Function (i-to-j)
ord.family

Ord Interaction Process Family
is.ppp

Test Whether An Object Is A Point Pattern
pcf.ppp

Pair Correlation Function of Point Pattern
subset.fv

Extract Subset of Function Values
eroded.areas

Areas of Morphological Erosions
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
union.quad

Union of Data and Dummy Points
corners

Corners of a rectangle
rMaternI

Simulate Matern Model I
distmap.owin

Distance Map of Window
Jmulti

Marked J Function
pairwise.family

Pairwise Interaction Process Family
Kest.fft

K-function using FFT
subset.ppp

Extract or Replace Subset of Point Pattern
swedishpines

Swedish Pines Point Pattern
plot.splitppp

Plot a List of Point Patterns
spatstat-internal

Internal spatstat functions
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
plot.quad

plot a Spatial Quadrature Scheme
default.dummy

Generate a Default Pattern of Dummy Points
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
inside.owin

Test Whether Points Are Inside A Window
is.im

Test Whether An Object Is A Pixel Image
nndist

Nearest neighbour distances
plot.fv

Plot Function Valuesn
spatstat-deprecated

Deprecated spatstat functions
is.owin

Test Whether An Object Is A Window
reach

Interaction Distance of a Point Process
rescue.rectangle

Convert Window Back To Rectangle
lansing

Lansing Woods Point Pattern
quad.object

Class of Quadrature Schemes
rmpoispp

Generate Multitype Poisson Point Pattern
pcf

Pair Correlation Function
erode.owin

Erode a Window
plot.fasp

Plot a Function Array
square

Square Window
im.object

Class of Images
rmpoint

Generate N Random Multitype Points
is.ppm

Test Whether An Object Is A Fitted Point Process Model
scanpp

Read Point Pattern From Data File
summary.ppm

Summarizing a Fitted Point Process Model
plot.plotppm

Plot a plotppm Object Created by plot.ppm
plot.owin

Plot a Spatial Window
rpoint

Generate N Random Points
print.ppm

Print a Fitted Point Process Model