Learn R Programming

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

spatstat (version 1.6-2)

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

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.6-2)

ord.family

Ord Interaction Process Family
fv.object

Data Frames of Function Values
subset.fasp

Extract Subset of Function Array
default.dummy

Generate a Default Pattern of Dummy Points
pairsat.family

Saturated Pairwise Interaction Point Process Family
is.marked.ppp

Test Whether A Point Pattern is Marked
quadscheme

Generate a Quadrature Scheme from a Point Pattern
runifpoint

Generate N Uniform Random Points
subset.im

Extract Subset of Image
stratrand

Stratified random point pattern
is.ppm

Test Whether An Object Is A Fitted Point Process Model
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
Kest.fft

K-function using FFT
affine

Apply Affine Transformation
MultiStrauss

The Multitype Strauss Point Process Model
Jcross

Multitype J Function (i-to-j)
area.owin

Area of a Window
OrdThresh

Ord's Interaction model
affine.owin

Apply Affine Transformation To Window
as.mask

Pixel Image Approximation of a Window
DiggleGratton

Diggle-Gratton model
bdist.points

Distance to Boundary of Window
coef.ppm

Coefficients of Fitted Point Process Model
as.im

Convert to Pixel Image
as.ppp

Convert Data To Class ppp
gridweights

Compute Quadrature Weights Based on Grid Counts
cells

Biological Cells Point Pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
Gcross

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

Marked Nearest Neighbour Distance Function
rMatClust

Simulate Matern Cluster Process
diameter

Diameter of a Window Frame
rNeymanScott

Simulate Neyman-Scott Process
data.ppm

Extract Original Data from a Fitted Point Process Model
is.marked.ppm

Test Whether A Point Process Model is Marked
Softcore

The Soft Core Point Process Model
Kdot

Multitype K Function (i-to-any)
im

Create a Pixel Image Object
owin

Create a Window
Jdot

Multitype J Function (i-to-any)
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
raster.x

Cartesian Coordinates for a Pixel Raster
Jmulti

Marked J Function
Kmeasure

Reduced Second Moment Measure
rotate

Rotate
amacrine

Hughes' Amacrine Cell Data
LennardJones

The Lennard-Jones Potential
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
longleaf

Longleaf Pines Point Pattern
Saturated

Saturated Pairwise Interaction model
copper

Berman-Huntington points and lines data
Kmulti

Marked K-Function
centroid.owin

Centroid of a window
rMaternI

Simulate Matern Model I
rmpoint

Generate N Random Multitype Points
Poisson

Poisson Point Process Model
betacells

Beta Ganglion Cells in Cat Retina
expand.owin

Expand Window By Factor
summary.ppp

Summary of a Point Pattern Dataset
Kcross

Multitype K Function (Cross-type)
as.rectangle

Window Frame
bramblecanes

Hutchings' Bramble Canes data
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
ppp.object

Class of Point Patterns
is.marked

Test Whether Marks Are Present
fasp.object

Function Arrays for Spatial Patterns
plot.owin

Plot a Spatial Window
rMaternII

Simulate Matern Model II
spatstat-deprecated

Deprecated spatstat functions
inside.owin

Test Whether Points Are Inside A Window
identify.ppp

Identify Points in a Point Pattern
summary.im

Summarizing a Pixel Image
as.owin

Convert Data To Class owin
distmap.ppp

Distance Map of Point Pattern
anova.ppm

ANOVA for Fitted Point Process Models
nndist

Nearest neighbour distances
plot.fasp

Plot a Function Array
Kest

K-function
lansing

Lansing Woods Point Pattern
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
spatstat-internal

Internal spatstat functions
finpines

Pine saplings in Finland.
print.im

Print Brief Details of an Image
bounding.box

Bounding Box of a Window
summary.quad

Summarizing a Quadrature Scheme
km.rs

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

Test Whether An Object Is A Pixel Image
plot.ppp

plot a Spatial Point Pattern
ppm

Fit Point Process Model to Data
Jest

Estimate the J-function
setcov

Set Covariance of a Window
union.quad

Union of Data and Dummy Points
harmonic

Basis for Harmonic Functions
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
plot.fv

Plot Function Valuesn
plot.splitppp

Plot a List of Point Patterns
markcorr

Mark Correlation Function
plot.quad

plot a Spatial Quadrature Scheme
redwood

California Redwoods Point Pattern (Ripley's Subset)
ppp

Create a Point Pattern
rThomas

Simulate Thomas Process
subset.fv

Extract Subset of Function Values
pairwise.family

Pairwise Interaction Process Family
summary.ppm

Summarizing a Fitted Point Process Model
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
shift.ppp

Apply Vector Translation To Point Pattern
rpoint

Generate N Random Points
summary.owin

Summary of a Spatial Window
update.ppm

Update a Fitted Point Process Model
rSSI

Simple Sequential Inhibition
rpoispp

Generate Poisson Point Pattern
rmpoispp

Generate Multitype Poisson Point Pattern
is.owin

Test Whether An Object Is A Window
rmh.ppm

Simulate from a Fitted Point Process Model
unmark

Remove Marks from a Marked Point Pattern
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
plot.plotppm

Plot a plotppm Object Created by plot.ppm
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
print.quad

Print a Quadrature Scheme
is.ppp

Test Whether An Object Is A Point Pattern
distmap.owin

Distance Map of Window
square

Square Window
reach

Interaction Distance of a Point Process
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
ripras

Estimate window from points alone
rotate.owin

Rotate a Window
ppm.object

Class of Fitted Point Process Models
Fest

Estimate the empty space function F
print.ppp

Print Brief Details of a Point Pattern Dataset
Kinhom

Inhomogeneous K-function
Strauss

The Strauss Point Process Model
spokes

Spokes pattern of dummy points
eroded.areas

Areas of Morphological Erosions
corners

Corners of a rectangle
hamster

Aherne's hamster tumour data
distmap

Distance Map
nearest.raster.point

Find Pixel Nearest to a Given Point
demopat

Artificial Data Point Pattern
Gest

Nearest Neighbour Distance Function G
shift

Apply Vector Translation
Ord

Generic Ord Interaction model
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
pairdist

Pairwise distances
gridcentres

Rectangular grid of points
letterR

Window in Shape of Letter R
pcf

Pair Correlation Function
is.subset.owin

Determine Whether One Window is Contained In Another
Pairwise

Generic Pairwise Interaction model
simdat

Simulated Point Pattern
intersect.owin

Intersection or Union of Two Windows
Geyer

Geyer's Saturation Point Process Model
owin.object

Class owin
bdist.pixels

Distance to Boundary of Window
superimpose

Superimpose Several Point Patterns
predict.ppm

Prediction from a Fitted Point Process Model
japanesepines

Japanese Pines Point Pattern
allstats

Calculate four standard summary functions of a point pattern.
affine.ppp

Apply Affine Transformation To Point Pattern
plot.ppm

plot a Fitted Point Process Model
concatxy

Concatenate x,y Coordinate Vectors
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
print.owin

Print Brief Details of a Spatial Window
print.ppm

Print a Fitted Point Process Model
rescue.rectangle

Convert Window Back To Rectangle
nztrees

New Zealand Trees Point Pattern
complement.owin

Take Complement of a Window
StraussHard

The Strauss / Hard Core Point Process Model
rotate.ppp

Rotate a Point Pattern
applynbd

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

Reduced Sample Estimator using Histogram Data
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
setmarks

Set or Reset the Marks in a Point Pattern
scanpp

Read Point Pattern From Data File
swedishpines

Swedish Pines Point Pattern
im.object

Class of Images
split.ppp

Divide Point Pattern into Sub-patterns
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
plot.im

Plot a Pixel Image
quad.object

Class of Quadrature Schemes
shift.owin

Apply Vector Translation To Window
spatstat.options

Internal Options in Spatstat Package
shift.im

Apply Vector Translation To Pixel Image
spruces

Spruces Point Pattern
subset.ppp

Extract or Replace Subset of Point Pattern
erode.owin

Erode a Window