Learn R Programming

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

spatstat (version 1.1-3)

Analysis of spatial point patterns

Description

Data analysis, model fitting and simulation of two-dimensional point patterns, including multitype/marked points and spatial covariates

Copy Link

Version

Install

install.packages('spatstat')

Monthly Downloads

17,668

Version

1.1-3

License

GPL version 2 or newer

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat (1.1-3)

Geyer

Geyer's Saturation Point Process Model
as.owin

Convert Data To Class owin
corners

Corners of a rectangle
erode.owin

Erode a Window
kmrs

Kaplan-Meier and Reduced Sample Estimator using Histograms
gridweights

Compute Quadrature Weights Based on Grid Counts
Jcross

Multitype J Function (i-to-j)
MultiStrauss

The Multitype Strauss Point Process Model
Gest

Nearest Neighbour Distance Function G
as.ppp

Convert Data To Class ppp
complement.owin

Take Complement of a Window
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
owin.object

Class owin
rMaternI

Simulate Matern Model I
Softcore

The Soft Core Point Process Model
gridcentres

Rectangular grid of points
ganglia

Cat Retinal Ganglia Data
markcorr

Mark Correlation Function
Fest

Estimate the empty space function F
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
Strauss

The Strauss Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
bdist.points

Distance to Boundary of Window
eroded.areas

Areas of Morphological Erosions
area.owin

Area of a Window
diameter

Diameter of a Window Frame
quadscheme

Generate a Quadrature Scheme from a Point Pattern
spatstat-internal

Internal spatstat functions
unmark

Remove Marks from a Marked Point Pattern
pairsat.family

Saturated Pairwise Interaction Point Process Family
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
ppp.object

Class of Point Patterns
rotate.ppp

Rotate a Point Pattern
runifpoint

Generate N Uniform Random Points
DiggleGratton

Diggle-Gratton model
affine.ppp

Apply Affine Transformation To Point Pattern
owin

Create a Window
bramblecanes

Hutchings' Bramble Canes data
Gmulti

Marked Nearest Neighbour Distance Function
allstats

Calculate four standard summary functions of a point pattern.
Kinhom

Inhomogeneous K-function
inside.owin

Test Whether Points Are Inside A Window
nearest.raster.point

Find Pixel Nearest to a Given Point
Ord

Generic Ord Interaction model
superimpose

Superimpose Several Point Patterns
ppm.object

Class of Fitted Point Process Models
rotate

Rotate
rNeymanScott

Simulate Neyman-Scott Process
ppp

Create a Point Pattern
hamster

Aherne's hamster tumour data
Pairwise

Generic Pairwise Interaction model
shift.ppp

Apply Vector Translation To Point Pattern
plot.ppm

plot a Fitted Point Process Model
cut.ppp

Convert Point Pattern Marks from Numeric to Factor
pcf

Pair Correlation Function
print.ppm

Print a Fitted Point Process Model
rMatClust

Simulate Matern Cluster Process
shift

Apply Vector Translation
fasp.object

Function Arrays for Spatial Patterns
subset.ppp

Extract Subset of Point Pattern
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
StraussHard

The Strauss / Hard Core Point Process Model
alltypes

Calculate Statistic for All Types in a Multitype Point Pattern
ord.family

Ord Interaction Process Family
plot.fasp

Plot a Function Array
rotate.owin

Rotate a Window
spokes

Spokes pattern of dummy points
Kdot

Multitype K Function (i-to-any)
OrdThresh

Ord's Interaction model
Kest

K-function
Jdot

Multitype J Function (i-to-any)
demopat

Artificial Data Point Pattern
affine.owin

Apply Affine Transformation To Window
nztrees

New Zealand Trees Point Pattern
amacrine

Hughes' Amacrine Cell Data
bounding.box

Bounding Box of a Window
reduced.sample

Reduced Sample Estimator using Histogram Data
subset.fasp

Extract Subset of Function Array
union.quad

Union of Data and Dummy Points
stratrand

Stratified random point pattern
swedishpines

Swedish Pines Point Pattern
ripras

Estimate window from points alone
as.mask

Pixel Image Approximation of a Window
rMaternII

Simulate Matern Model II
raster.x

Cartesian Coordinates for a Pixel Raster
conspire

Plot Together According to a Formula
rSSI

Simple Sequential Inhibition
pairwise.family

Pairwise Interaction Process Family
Jmulti

Marked J Function
Poisson

Poisson Point Process Model
bdist.pixels

Distance to Boundary of Window
as.rectangle

Window Frame
concatxy

Concatenate x,y Coordinate Vectors
plot.ppp

plot a Spatial Point Pattern
redwood

California Redwoods Point Pattern (Ripley's Subset)
Kmulti

Marked K-Function
default.dummy

Generate a Default Pattern of Dummy Points
lansing

Lansing Woods Point Pattern
longleaf

Longleaf Pines Point Pattern
rpoispp

Generate Poisson Point Pattern
rThomas

Simulate Thomas Process
cells

Biological Cells Point Pattern
Saturated

Saturated Pairwise Interaction model
mpl

Fit Point Process Model by Maximum Pseudolikelihood
quad.object

Class of Quadrature Schemes
simdat

Simulated Point Pattern
Jest

Estimate the J-function
Kcross

Multitype K Function (Cross-type)
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
affine

Apply Affine Transformation
centroid.owin

Centroid of a window
Gcross

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

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

Plot a Spatial Window
predict.ppm

Prediction from a Fitted Point Process Model
shift.owin

Apply Vector Translation To Window