Learn R Programming

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

spatstat (version 1.4-5)

Analysis of spatial point patterns

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

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.4-5)

lansing

Lansing Woods Point Pattern
centroid.owin

Centroid of a window
Softcore

The Soft Core Point Process Model
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
plot.owin

Plot a Spatial Window
quad.object

Class of Quadrature Schemes
concatxy

Concatenate x,y Coordinate Vectors
diameter

Diameter of a Window Frame
harmonic

Basis for Harmonic Functions
fasp.object

Function Arrays for Spatial Patterns
Kinhom

Inhomogeneous K-function
cells

Biological Cells Point Pattern
Strauss

The Strauss Point Process Model
Fest

Estimate the empty space function F
demopat

Artificial Data Point Pattern
DiggleGratton

Diggle-Gratton model
allstats

Calculate four standard summary functions of a point pattern.
as.im

Convert to Pixel Image
owin

Create a Window
area.owin

Area of a Window
Kest.fft

K-function using FFT
is.marked.ppp

Test Whether A Point Pattern is Marked
im.object

Class of Images
Jcross

Multitype J Function (i-to-j)
coef.ppm

Coefficients of Fitted Point Process Model
fv.object

Data Frames of Function Values
Kest

K-function
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
intersect.owin

Intersection or Union of Two Windows
data.ppm

Extract Original Data from a Fitted Point Process Model
rotate

Rotate
amacrine

Hughes' Amacrine Cell Data
print.owin

Print Brief Details of a Spatial Window
Kmeasure

Reduced Second Moment Measure
bdist.pixels

Distance to Boundary of Window
affine

Apply Affine Transformation
bounding.box

Bounding Box of a Window
nndist

Nearest neighbour distances
letterR

Window in Shape of Letter R
eroded.areas

Areas of Morphological Erosions
fitted.ppm

Fitted Conditional Intensity for Point Process Model
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
default.dummy

Generate a Default Pattern of Dummy Points
ganglia

Cat Retinal Ganglia Data
is.ppp

Test Whether An Object Is A Point Pattern
Kcross

Multitype K Function (Cross-type)
Geyer

Geyer's Saturation Point Process Model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
Gmulti

Marked Nearest Neighbour Distance Function
im

Create a Pixel Image Object
plot.fv

Plot Function Valuesn
nearest.raster.point

Find Pixel Nearest to a Given Point
Saturated

Saturated Pairwise Interaction model
Ord

Generic Ord Interaction model
ppm.object

Class of Fitted Point Process Models
affine.ppp

Apply Affine Transformation To Point Pattern
rpoint

Generate N Random Points
bramblecanes

Hutchings' Bramble Canes data
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
rotate.ppp

Rotate a Point Pattern
km.rs

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

Print Brief Details of a Point Pattern Dataset
is.ppm

Test Whether An Object Is A Fitted Point Process Model
rThomas

Simulate Thomas Process
shift.im

Apply Vector Translation To Pixel Image
Jest

Estimate the J-function
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
hamster

Aherne's hamster tumour data
Kdot

Multitype K Function (i-to-any)
rMatClust

Simulate Matern Cluster Process
subset.fv

Extract Subset of Function Values
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
corners

Corners of a rectangle
Gest

Nearest Neighbour Distance Function G
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
StraussHard

The Strauss / Hard Core Point Process Model
mpl

Fit Point Process Model by Maximum Pseudolikelihood
is.marked

Test Whether Marks Are Present
complement.owin

Take Complement of a Window
plot.ppp

plot a Spatial Point Pattern
as.rectangle

Window Frame
redwood

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

Summarizing a Fitted Point Process Model
Kmulti

Marked K-Function
shift.ppp

Apply Vector Translation To Point Pattern
Jdot

Multitype J Function (i-to-any)
shift.owin

Apply Vector Translation To Window
OrdThresh

Ord's Interaction model
Jmulti

Marked J Function
erode.owin

Erode a Window
gridcentres

Rectangular grid of points
owin.object

Class owin
as.ppp

Convert Data To Class ppp
gridweights

Compute Quadrature Weights Based on Grid Counts
nztrees

New Zealand Trees Point Pattern
LennardJones

The Lennard-Jones Potential
markcorr

Mark Correlation Function
affine.owin

Apply Affine Transformation To Window
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
as.owin

Convert Data To Class owin
ppp

Create a Point Pattern
Pairwise

Generic Pairwise Interaction model
bdist.points

Distance to Boundary of Window
unmark

Remove Marks from a Marked Point Pattern
rMaternI

Simulate Matern Model I
rSSI

Simple Sequential Inhibition
spatstat-internal

Internal spatstat functions
as.mask

Pixel Image Approximation of a Window
print.ppm

Print a Fitted Point Process Model
rNeymanScott

Simulate Neyman-Scott Process
print.quad

Print a Quadrature Scheme
rmh.ppm

Simulate from a Fitted Point Process Model
ripras

Estimate window from points alone
inside.owin

Test Whether Points Are Inside A Window
quadscheme

Generate a Quadrature Scheme from a Point Pattern
runifpoint

Generate N Uniform Random Points
update.ppm

Update a Fitted Point Process Model
shift

Apply Vector Translation
subset.im

Extract Subset of Image
identify.ppp

Identify Points in a Point Pattern
rotate.owin

Rotate a Window
ppp.object

Class of Point Patterns
summary.quad

Summarizing a Quadrature Scheme
rpoispp

Generate Poisson Point Pattern
print.im

Print Brief Details of an Image
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
spokes

Spokes pattern of dummy points
Poisson

Poisson Point Process Model
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
is.marked.ppm

Test Whether A Point Process Model is Marked
is.im

Test Whether An Object Is A Pixel Image
ord.family

Ord Interaction Process Family
is.subset.owin

Determine Whether One Window is Contained In Another
is.owin

Test Whether An Object Is A Window
plot.ppm

plot a Fitted Point Process Model
union.quad

Union of Data and Dummy Points
longleaf

Longleaf Pines Point Pattern
simdat

Simulated Point Pattern
predict.ppm

Prediction from a Fitted Point Process Model
pcf

Pair Correlation Function
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
subset.fasp

Extract Subset of Function Array
pairdist

Pairwise distances
rmpoint

Generate N Random Multitype Points
plot.fasp

Plot a Function Array
rmh.default

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

Summary of a Point Pattern Dataset
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
superimpose

Superimpose Several Point Patterns
plot.quad

plot a Spatial Quadrature Scheme
spatstat.options

Internal Options in Spatstat Package
swedishpines

Swedish Pines Point Pattern
reduced.sample

Reduced Sample Estimator using Histogram Data
rmpoispp

Generate Multitype Poisson Point Pattern
pairsat.family

Saturated Pairwise Interaction Point Process Family
rMaternII

Simulate Matern Model II
stratrand

Stratified random point pattern
raster.x

Cartesian Coordinates for a Pixel Raster
square

Square Window
summary.im

Summarizing a Pixel Image
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
MultiStrauss

The Multitype Strauss Point Process Model
pairwise.family

Pairwise Interaction Process Family
subset.ppp

Extract Subset of Point Pattern
summary.owin

Summary of a Spatial Window