Learn R Programming

spatstat.explore (version 3.7-0)

Exploratory Data Analysis for the 'spatstat' Family

Description

Functionality for exploratory data analysis and nonparametric analysis of spatial data, mainly spatial point patterns, in the 'spatstat' family of packages. (Excludes analysis of spatial data on a linear network, which is covered by the separate package 'spatstat.linnet'.) Methods include quadrat counts, K-functions and their simulation envelopes, nearest neighbour distance and empty space statistics, Fry plots, pair correlation function, kernel smoothed intensity, relative risk estimation with cross-validated bandwidth selection, mark correlation functions, segregation indices, mark dependence diagnostics, and kernel estimates of covariate effects. Formal hypothesis tests of random pattern (chi-squared, Kolmogorov-Smirnov, Monte Carlo, Diggle-Cressie-Loosmore-Ford, Dao-Genton, two-stage Monte Carlo) and tests for covariate effects (Cox-Berman-Waller-Lawson, Kolmogorov-Smirnov, ANOVA) are also supported.

Copy Link

Version

Install

install.packages('spatstat.explore')

Monthly Downloads

75,391

Version

3.7-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

January 22nd, 2026

Functions in spatstat.explore (3.7-0)

Finhom

Inhomogeneous Empty Space Function
F3est

Empty Space Function of a Three-Dimensional Point Pattern
[.ssf

Subset of spatially sampled function
Gcross

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

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
Fest

Estimate the Empty Space Function or its Hazard Rate
Emark

Diagnostics for random marking
FmultiInhom

Inhomogeneous Marked F-Function
Extract.fv

Extract or Replace Subset of Function Values
Extract.fasp

Extract Subset of Function Array
Gcross.inhom

Inhomogeneous Multitype G Cross Function
ISE.envelope

Integrated Squared Error on an Envelope Object
Gmulti

Marked Nearest Neighbour Distance Function
Hest

Spherical Contact Distribution Function
GmultiInhom

Inhomogeneous Marked G-Function
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
Gdot.inhom

Inhomogeneous Multitype G Dot Function
Gest

Nearest Neighbour Distance Function G
Ginhom

Inhomogeneous Nearest Neighbour Function
Gfox

Foxall's Distance Functions
Jest

Estimate the J-function
Jdot.inhom

Inhomogeneous Multitype J function (i-to-any)
Jcross.inhom

Inhomogeneous Multitype J function (i-to-j)
K3est

K-function of a Three-Dimensional Point Pattern
Jmulti

Marked J Function
Jdot

Multitype J Function (i-to-any)
Jmulti.inhom

Inhomogeneous Marked J-Function
Jcross

Multitype J Function (i-to-j)
Iest

Estimate the I-function
Jinhom

Inhomogeneous J-function
Kmeasure

Reduced Second Moment Measure
Kcross.inhom

Inhomogeneous Cross K Function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kinhom

Inhomogeneous K-function
Kdot

Multitype K Function (i-to-any)
Kmark

Mark-Weighted K Function
Kmulti

Marked K-Function
Kest

K-function
Kcross

Multitype K Function (Cross-type)
Kest.fft

K-function using FFT
Lcross.inhom

Inhomogeneous Cross Type L Function
Lest

L-function
Lcross

Multitype L-function (cross-type)
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Kscaled

Locally Scaled K-function
MISE.envelope

Mean Integrated Squared Error on an Envelope Object
Ldot

Multitype L-function (i-to-any)
Kmulti.inhom

Inhomogeneous Marked K-Function
Ksector

Sector K-function
Linhom

Inhomogeneous L-function
SmoothHeat.ppp

Spatial Smoothing of Observations using Diffusion Estimate of Density
SmoothHeat

Spatial Smoothing of Data by Diffusion
Smooth.ssf

Smooth a Spatially Sampled Function
Smooth

Spatial smoothing of data
Math.fasp

S3 Group Generic Methods for Function Arrays
Smooth.ppp

Spatial smoothing of observations at irregular points
Smooth.fv

Apply Smoothing to Function Values
Math.fv

S3 Group Generic Methods for Function Tables
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
PPversion

Transform a Function into its P-P or Q-Q Version
as.data.frame.envelope

Coerce Envelope to Data Frame
Window.quadrattest

Extract Window of Spatial Object
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
as.function.fv

Convert Function Value Table to Function
Tstat

Third order summary statistic
SpatialQuantile

Spatially Weighted Median or Quantile
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
allstats

Calculate four standard summary functions of a point pattern.
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
auc

Area Under ROC Curve for Point Pattern Data
as.function.rhohat

Convert Function Table to Function
berman.test

Berman's Tests for Point Process Model
bind.fv

Combine Function Value Tables
bits.test

Balanced Independent Two-Stage Monte Carlo Test
as.owin.quadrattest

Convert Data To Class owin
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
as.fv

Convert Data To Class fv
blur

Apply Gaussian Blur to a Pixel Image
as.tess

Convert Data To Tessellation
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
bw.optim.object

Class of Optimized Bandwidths
bw.frac

Bandwidth Selection Based on Window Geometry
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
blurHeat

Diffusion Blur
bw.CvLHeat

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
bw.abram.ppp

Abramson's Adaptive Bandwidths For Spatial Point Pattern
bw.CvL.adaptive

Select Adaptive Bandwidth for Kernel Estimation Using Cronie-Van Lieshout Criterion
bw.bdh

Adjust Bandwidth Selection Rule to Account for Inhomogeneity
boyce

Boyce Index
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
bw.relriskHeatppp

Bandwidth Selection for Relative Risk using Diffusion
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
bw.pcfinhom

Cross Validated Bandwidth Selection for Inhomogeneous Pair Correlation Function
bw.pplHeat

Bandwidth Selection for Diffusion Smoother by Likelihood Cross-Validation
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth for Estimating Pair Correlation
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
circdensity

Density Estimation for Circular Data
cov.im

Covariance and Correlation between Images
compatible.fasp

Test Whether Function Arrays Are Compatible
collapse.fv

Collapse Several Function Tables into One
compatible.fv

Test Whether Function Objects Are Compatible
compileK

Generic Calculation of K Function and Pair Correlation Function
clarkevans

Clark and Evans Aggregation Index
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
clarkevans.test

Clark and Evans Test
clusterset

Allard-Fraley Estimator of Cluster Feature
density.psp

Kernel Smoothing of Line Segment Pattern
dclf.progress

Progress Plot of Test of Spatial Pattern
densityHeat

Diffusion Estimate of Point Pattern Intensity
densityAdaptiveKernel.splitppp

Adaptive Kernel Estimate of Intensity for Split Point Pattern
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
density.ppp

Kernel Smoothed Intensity of Point Pattern
dclf.sigtrace

Significance Trace of Cressie-Loosmore-Ford or Maximum Absolute Deviation Test
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
densityAdaptiveKernel.ppp

Adaptive Kernel Estimate of Intensity of Point Pattern
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
domain.quadrattest

Extract the Domain of any Spatial Object
dimhat

Estimate Dimension of Central Subspace
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
distcdf

Distribution Function of Interpoint Distance
deriv.fv

Calculate Derivative of Function Values
dg.envelope

Global Envelopes for Dao-Genton Test
dg.sigtrace

Significance Trace of Dao-Genton Test
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
edge.Trans

Translation Edge Correction
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
envelope.envelope

Recompute Envelopes
envelopeArray

Array of Simulation Envelopes of Summary Function
eval.fv

Evaluate Expression Involving Functions
formula.fv

Extract or Change the Plot Formula for a Function Value Table
fasp.object

Function Arrays for Spatial Patterns
edge.Ripley

Ripley's Isotropic Edge Correction
eval.fasp

Evaluate Expression Involving Function Arrays
envelope

Simulation Envelopes of Summary Function
hopskel

Hopkins-Skellam Test
hotbox

Heat Kernel for a Two-Dimensional Rectangle
harmonise.fv

Make Function Tables Compatible
integral.fv

Compute Integral of Function Object
fv.object

Function Value Table
fryplot

Fry Plot of Point Pattern
fv

Create a Function Value Table
idw

Inverse-distance weighted smoothing of observations at irregular points
increment.fv

Increments of a Function
fvnames

Abbreviations for Groups of Columns in Function Value Table
localK

Neighbourhood density function
localpcf

Local pair correlation function
localKinhom

Inhomogeneous Neighbourhood Density Function
localKcross

Local Multitype K Function (Cross-Type)
laslett

Laslett's Transform
markconnect

Mark Connection Function
localKdot

Local Multitype K Function (Dot-Type)
localKcross.inhom

Inhomogeneous Multitype K Function
lohboot

Bootstrap Confidence Bands for Summary Function
markcorr

Mark Correlation Function
markmarkscatter

Mark-Mark Scatter Plot
markequal

Mark Equality Function
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
miplot

Morisita Index Plot
markcrosscorr

Mark Cross-Correlation Function
methods.ssf

Methods for Spatially Sampled Functions
nnclean

Nearest Neighbour Clutter Removal
markvario

Mark Variogram
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
nnequal

Nearest Neighbour Type-Equality Function
pairMean

Mean of a Function of Interpoint Distance
panel.contour

Panel Plots using Colour Image or Contour Lines
pairorient

Point Pair Orientation Distribution
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
pairs.im

Scatterplot Matrix for Pixel Images
nncount

Nearest Neighbour Cross-Type Occurrence Count Function
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
nnorient

Nearest Neighbour Orientation Distribution
pcf

Pair Correlation Function
pcf.fv

Pair Correlation Function obtained from K Function
pcfcross

Multitype pair correlation function (cross-type)
pcfinhom

Inhomogeneous Pair Correlation Function
pcf.fasp

Pair Correlation Function obtained from array of K functions
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
pcfdot

Multitype pair correlation function (i-to-any)
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
pcfmulti

Marked pair correlation function
pcf.ppp

Pair Correlation Function of Point Pattern
plot.fasp

Plot a Function Array
plot.scan.test

Plot Result of Scan Test
plot.quadrattest

Display the result of a quadrat counting test.
plot.cdftest

Plot a Spatial Distribution Test
plot.envelope

Plot a Simulation Envelope
plot.ssf

Plot a Spatially Sampled Function
plot.laslett

Plot Laslett Transform
plot.bermantest

Plot Result of Berman Test
plot.fv

Plot Function Values
plot.studpermutest

Plot a Studentised Permutation Test
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
quadrat.test.splitppp

Dispersion Test of CSR for Split Point Pattern Based on Quadrat Counts
pool.quadrattest

Pool Several Quadrat Tests
pool.envelope

Pool Data from Several Envelopes
pool

Pool Data
pool.rat

Pool Data from Several Ratio Objects
pool.fasp

Pool Data from Several Function Arrays
pool.anylist

Pool Data from a List of Objects
ptwise.envelope

Pointwise Statistics on an Envelope Object
pool.fv

Pool Several Functions
radcumint

Radial Cumulative Integral
reload.or.compute

Perform Computations or Retrieve Results From File
relrisk

Estimate of Spatially-Varying Relative Risk
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
rectcontact

Contact Distribution Function using Rectangular Structuring Element
roc

Receiver Operating Characteristic
relriskHeat

Diffusion Estimate of Conditional Probabilities
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
rat

Ratio object
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
rotmean

Rotational Average of a Pixel Image
sharpen

Data Sharpening of Point Pattern
spatcov

Estimate the Spatial Covariance Function of a Random Field
sdr

Sufficient Dimension Reduction
roc.rhohat

Receiver Operating Characteristic
segregation.test

Test of Spatial Segregation of Types
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
rose

Rose Diagram
scan.test

Spatial Scan Test
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
spatstat.explore-deprecated

Deprecated spatstat.explore functions
spatstat.explore-internal

Internal spatstat.explore functions
ssf

Spatially Sampled Function
studpermu.test

Studentised Permutation Test
stienen

Stienen Diagram
spatialcdf

Spatial Cumulative Distribution Function
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
spatstat.explore-package

The spatstat.explore Package
subspaceDistance

Distance Between Linear Spaces
with.fv

Evaluate an Expression in a Function Table
youden

Youden Statistic
transect.im

Pixel Values Along a Transect
tolcon

Tolerance Contours for Relative Risk
with.ssf

Evaluate Expression in a Spatially Sampled Function
varblock

Estimate Variance of Summary Statistic by Subdivision