Learn R Programming

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

spatstat (version 1.4-6)

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,590

Version

1.4-6

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.4-6)

update.ppm

Update a Fitted Point Process Model
Gmulti

Marked Nearest Neighbour Distance Function
bounding.box

Bounding Box of a Window
is.ppm

Test Whether An Object Is A Fitted Point Process Model
is.owin

Test Whether An Object Is A Window
Jdot

Multitype J Function (i-to-any)
as.rectangle

Window Frame
as.im

Convert to Pixel Image
rNeymanScott

Simulate Neyman-Scott Process
rThomas

Simulate Thomas Process
spatstat.options

Internal Options in Spatstat Package
Kdot

Multitype K Function (i-to-any)
area.owin

Area of a Window
summary.owin

Summary of a Spatial Window
default.dummy

Generate a Default Pattern of Dummy Points
print.quad

Print a Quadrature Scheme
raster.x

Cartesian Coordinates for a Pixel Raster
summary.ppm

Summarizing a Fitted Point Process Model
LennardJones

The Lennard-Jones Potential
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
pairwise.family

Pairwise Interaction Process Family
Kmulti

Marked K-Function
Saturated

Saturated Pairwise Interaction model
fitted.ppm

Fitted Conditional Intensity for Point Process Model
plot.fasp

Plot a Function Array
complement.owin

Take Complement of a Window
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
rpoint

Generate N Random Points
is.marked

Test Whether Marks Are Present
lansing

Lansing Woods Point Pattern
summary.quad

Summarizing a Quadrature Scheme
Kinhom

Inhomogeneous K-function
DiggleGratton

Diggle-Gratton model
allstats

Calculate four standard summary functions of a point pattern.
cells

Biological Cells Point Pattern
hamster

Aherne's hamster tumour data
bramblecanes

Hutchings' Bramble Canes data
plot.quad

plot a Spatial Quadrature Scheme
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
rmpoint

Generate N Random Multitype Points
bdist.points

Distance to Boundary of Window
fasp.object

Function Arrays for Spatial Patterns
eroded.areas

Areas of Morphological Erosions
rotate.owin

Rotate a Window
concatxy

Concatenate x,y Coordinate Vectors
nndist

Nearest neighbour distances
is.marked.ppm

Test Whether A Point Process Model is Marked
mpl

Fit Point Process Model by Maximum Pseudolikelihood
redwood

California Redwoods Point Pattern (Ripley's Subset)
rMatClust

Simulate Matern Cluster Process
reduced.sample

Reduced Sample Estimator using Histogram Data
shift.owin

Apply Vector Translation To Window
amacrine

Hughes' Amacrine Cell Data
Ord

Generic Ord Interaction model
subset.im

Extract Subset of Image
rpoispp

Generate Poisson Point Pattern
letterR

Window in Shape of Letter R
superimpose

Superimpose Several Point Patterns
Fest

Estimate the empty space function F
spokes

Spokes pattern of dummy points
unmark

Remove Marks from a Marked Point Pattern
pairsat.family

Saturated Pairwise Interaction Point Process Family
subset.fv

Extract Subset of Function Values
Jest

Estimate the J-function
Gdot

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

Determine Whether One Window is Contained In Another
Kmeasure

Reduced Second Moment Measure
StraussHard

The Strauss / Hard Core Point Process Model
runifpoint

Generate N Uniform Random Points
Pairwise

Generic Pairwise Interaction model
as.owin

Convert Data To Class owin
data.ppm

Extract Original Data from a Fitted Point Process Model
swedishpines

Swedish Pines Point Pattern
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
union.quad

Union of Data and Dummy Points
Jmulti

Marked J Function
summary.ppp

Summary of a Point Pattern Dataset
bdist.pixels

Distance to Boundary of Window
Poisson

Poisson Point Process Model
Kcross

Multitype K Function (Cross-type)
Geyer

Geyer's Saturation Point Process Model
gridcentres

Rectangular grid of points
print.owin

Print Brief Details of a Spatial Window
MultiStrauss

The Multitype Strauss Point Process Model
coef.ppm

Coefficients of Fitted Point Process Model
demopat

Artificial Data Point Pattern
affine.owin

Apply Affine Transformation To Window
ppp

Create a Point Pattern
as.mask

Pixel Image Approximation of a Window
shift.ppp

Apply Vector Translation To Point Pattern
centroid.owin

Centroid of a window
ppm.object

Class of Fitted Point Process Models
erode.owin

Erode a Window
identify.ppp

Identify Points in a Point Pattern
quad.object

Class of Quadrature Schemes
rmpoispp

Generate Multitype Poisson Point Pattern
rotate

Rotate
Kest

K-function
Strauss

The Strauss Point Process Model
intersect.owin

Intersection or Union of Two Windows
is.ppp

Test Whether An Object Is A Point Pattern
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
affine.ppp

Apply Affine Transformation To Point Pattern
ppp.object

Class of Point Patterns
spatstat-internal

Internal spatstat functions
ganglia

Cat Retinal Ganglia Data
owin.object

Class owin
print.ppm

Print a Fitted Point Process Model
is.marked.ppp

Test Whether A Point Pattern is Marked
print.im

Print Brief Details of an Image
ord.family

Ord Interaction Process Family
quadscheme

Generate a Quadrature Scheme from a Point Pattern
rMaternII

Simulate Matern Model II
rmh.ppm

Simulate from a Fitted Point Process Model
shift.im

Apply Vector Translation To Pixel Image
plot.owin

Plot a Spatial Window
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
longleaf

Longleaf Pines Point Pattern
rotate.ppp

Rotate a Point Pattern
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
square

Square Window
subset.fasp

Extract Subset of Function Array
subset.ppp

Extract Subset of Point Pattern
Gest

Nearest Neighbour Distance Function G
Jcross

Multitype J Function (i-to-j)
Softcore

The Soft Core Point Process Model
OrdThresh

Ord's Interaction model
harmonic

Basis for Harmonic Functions
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
owin

Create a Window
nztrees

New Zealand Trees Point Pattern
ripras

Estimate window from points alone
rMaternI

Simulate Matern Model I
simdat

Simulated Point Pattern
stratrand

Stratified random point pattern
im

Create a Pixel Image Object
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
is.im

Test Whether An Object Is A Pixel Image
gridweights

Compute Quadrature Weights Based on Grid Counts
markcorr

Mark Correlation Function
pcf

Pair Correlation Function
plot.ppp

plot a Spatial Point Pattern
print.ppp

Print Brief Details of a Point Pattern Dataset
summary.im

Summarizing a Pixel Image
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
diameter

Diameter of a Window Frame
inside.owin

Test Whether Points Are Inside A Window
plot.ppm

plot a Fitted Point Process Model
predict.ppm

Prediction from a Fitted Point Process Model
Kest.fft

K-function using FFT
im.object

Class of Images
affine

Apply Affine Transformation
corners

Corners of a rectangle
as.ppp

Convert Data To Class ppp
nearest.raster.point

Find Pixel Nearest to a Given Point
pairdist

Pairwise distances
rSSI

Simple Sequential Inhibition
shift

Apply Vector Translation
fv.object

Data Frames of Function Values
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
plot.fv

Plot Function Valuesn
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.