Learn R Programming

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

spatstat (version 1.3-3)

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.3-3

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.3-3)

Fest

Estimate the empty space function F
OrdThresh

Ord's Interaction model
MultiStrauss

The Multitype Strauss Point Process Model
Strauss

The Strauss Point Process Model
StraussHard

The Strauss / Hard Core Point Process Model
Kmulti

Marked K-Function
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
plot.ppm

plot a Fitted Point Process Model
DiggleGratton

Diggle-Gratton model
affine

Apply Affine Transformation
nearest.raster.point

Find Pixel Nearest to a Given Point
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
im

Create a Pixel Image Object
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
unmark

Remove Marks from a Marked Point Pattern
Pairwise

Generic Pairwise Interaction model
bounding.box

Bounding Box of a Window
Gmulti

Marked Nearest Neighbour Distance Function
Kdot

Multitype K Function (i-to-any)
demopat

Artificial Data Point Pattern
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
predict.ppm

Prediction from a Fitted Point Process Model
ord.family

Ord Interaction Process Family
hamster

Aherne's hamster tumour data
spatstat.options

Internal Options in Spatstat Package
rMatClust

Simulate Matern Cluster Process
print.ppp

Print Brief Details of a Point Pattern Dataset
print.owin

Print Brief Details of a Spatial Window
rThomas

Simulate Thomas Process
quadscheme

Generate a Quadrature Scheme from a Point Pattern
summary.owin

Summary of a Spatial Window
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
is.marked.ppm

Test Whether A Point Process Model is Marked
ganglia

Cat Retinal Ganglia Data
owin.object

Class owin
ppp

Create a Point Pattern
as.ppp

Convert Data To Class ppp
rSSI

Simple Sequential Inhibition
superimpose

Superimpose Several Point Patterns
rmh.ppm

Simulate from a Fitted Point Process Model
Kmeasure

Reduced Second Moment Measure
LennardJones

The Lennard-Jones Potential
plot.fasp

Plot a Function Array
Kcross

Multitype K Function (Cross-type)
rMaternI

Simulate Matern Model I
reduced.sample

Reduced Sample Estimator using Histogram Data
area.owin

Area of a Window
eroded.areas

Areas of Morphological Erosions
longleaf

Longleaf Pines Point Pattern
simdat

Simulated Point Pattern
as.mask

Pixel Image Approximation of a Window
complement.owin

Take Complement of a Window
Jdot

Multitype J Function (i-to-any)
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
centroid.owin

Centroid of a window
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
cells

Biological Cells Point Pattern
is.marked

Test Whether Marks Are Present
letterR

Window in Shape of Letter R
conspire

Plot Together According to a Formula
as.rectangle

Window Frame
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
union.quad

Union of Data and Dummy Points
pairwise.family

Pairwise Interaction Process Family
inside.owin

Test Whether Points Are Inside A Window
affine.ppp

Apply Affine Transformation To Point Pattern
as.owin

Convert Data To Class owin
harmonic

Basis for Harmonic Functions
im.object

Class of Images
corners

Corners of a rectangle
rotate.owin

Rotate a Window
plot.ppp

plot a Spatial Point Pattern
print.ppm

Print a Fitted Point Process Model
rpoispp

Generate Poisson Point Pattern
shift.im

Apply Vector Translation To Pixel Image
quad.object

Class of Quadrature Schemes
ripras

Estimate window from points alone
raster.x

Cartesian Coordinates for a Pixel Raster
markcorr

Mark Correlation Function
pcf

Pair Correlation Function
Poisson

Poisson Point Process Model
data.ppm

Extract Original Data from a Fitted Point Process Model
fitted.ppm

Fitted Conditional Intensity for Point Process Model
shift.owin

Apply Vector Translation To Window
coef.ppm

Coefficients of Fitted Point Process Model
plot.owin

Plot a Spatial Window
nndist

Nearest neighbour distances
Gcross

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

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

Apply Affine Transformation To Window
Gest

Nearest Neighbour Distance Function G
concatxy

Concatenate x,y Coordinate Vectors
Jest

Estimate the J-function
spatstat-internal

Internal spatstat functions
mpl

Fit Point Process Model by Maximum Pseudolikelihood
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
spokes

Spokes pattern of dummy points
subset.fasp

Extract Subset of Function Array
rotate.ppp

Rotate a Point Pattern
Kest

K-function
Jcross

Multitype J Function (i-to-j)
bramblecanes

Hutchings' Bramble Canes data
owin

Create a Window
rNeymanScott

Simulate Neyman-Scott Process
shift.ppp

Apply Vector Translation To Point Pattern
shift

Apply Vector Translation
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
diameter

Diameter of a Window Frame
default.dummy

Generate a Default Pattern of Dummy Points
square

Square Window
plot.quad

plot a Spatial Quadrature Scheme
is.marked.ppp

Test Whether A Point Pattern is Marked
fasp.object

Function Arrays for Spatial Patterns
erode.owin

Erode a Window
pairsat.family

Saturated Pairwise Interaction Point Process Family
rotate

Rotate
stratrand

Stratified random point pattern
swedishpines

Swedish Pines Point Pattern
ppp.object

Class of Point Patterns
Kest.fft

K-function using FFT
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
Ord

Generic Ord Interaction model
bdist.pixels

Distance to Boundary of Window
identify.ppp

Identify Points in a Point Pattern
bdist.points

Distance to Boundary of Window
amacrine

Hughes' Amacrine Cell Data
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
Kinhom

Inhomogeneous K-function
Softcore

The Soft Core Point Process Model
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
gridweights

Compute Quadrature Weights Based on Grid Counts
pairdist

Pairwise distances
subset.ppp

Extract Subset of Point Pattern
subset.im

Extract Subset of Image
ksmooth.ppp

Kernel Smoothed Intensity of Point Pattern
lansing

Lansing Woods Point Pattern
nztrees

New Zealand Trees Point Pattern
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
ppm.object

Class of Fitted Point Process Models
Geyer

Geyer's Saturation Point Process Model
Jmulti

Marked J Function
Saturated

Saturated Pairwise Interaction model
gridcentres

Rectangular grid of points
runifpoint

Generate N Uniform Random Points
redwood

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

Summary of a Point Pattern Dataset
rMaternII

Simulate Matern Model II