Learn R Programming

spatstat.explore (version 3.8-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

67,872

Version

3.8-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2026

Functions in spatstat.explore (3.8-0)

Fest

Estimate the Empty Space Function or its Hazard Rate
Emark

Diagnostics for random marking
FmultiInhom

Inhomogeneous Marked F-Function
[.ssf

Subset of spatially sampled function
Extract.fasp

Extract Subset of Function Array
Gcross

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

Empty Space Function of a Three-Dimensional Point Pattern
G3est

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

Inhomogeneous Empty Space Function
Extract.fv

Extract or Replace Subset of Function Values
Gest

Nearest Neighbour Distance Function G
Gcross.inhom

Inhomogeneous Multitype G Cross Function
ISE.envelope

Integrated Squared Error on an Envelope Object
Ginhom

Inhomogeneous Nearest Neighbour Function
GmultiInhom

Inhomogeneous Marked G-Function
Hest

Spherical Contact Distribution Function
Gdot.inhom

Inhomogeneous Multitype G Dot Function
Gmulti

Marked Nearest Neighbour Distance Function
Gdot

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

Foxall's Distance Functions
Jcross.inhom

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

Estimate the I-function
Jdot.inhom

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

Multitype J Function (i-to-j)
K3est

K-function of a Three-Dimensional Point Pattern
Jinhom

Inhomogeneous J-function
Jest

Estimate the J-function
Jmulti.inhom

Inhomogeneous Marked J-Function
Jmulti

Marked J Function
Jdot

Multitype J Function (i-to-any)
Kcross

Multitype K Function (Cross-type)
Kinhom

Inhomogeneous K-function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kcross.inhom

Inhomogeneous Cross K Function
Kmark

Mark-Weighted K Function
Kest

K-function
Kdot

Multitype K Function (i-to-any)
Kmeasure

Reduced Second Moment Measure
Kmulti

Marked K-Function
Kest.fft

K-function using FFT
Lcross.inhom

Inhomogeneous Cross Type L Function
Ksector

Sector K-function
Kmulti.inhom

Inhomogeneous Marked K-Function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Kscaled

Locally Scaled K-function
Lest

L-function
Linhom

Inhomogeneous L-function
MISE.envelope

Mean Integrated Squared Error on an Envelope Object
Ldot

Multitype L-function (i-to-any)
Lcross

Multitype L-function (cross-type)
Smooth.fv

Apply Smoothing to Function Values
Math.fv

S3 Group Generic Methods for Function Tables
PPversion

Transform a Function into its P-P or Q-Q Version
SmoothHeat

Spatial Smoothing of Data by Diffusion
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
Math.fasp

S3 Group Generic Methods for Function Arrays
SmoothHeat.ppp

Spatial Smoothing of Observations using Diffusion Estimate of Density
Smooth.ssf

Smooth a Spatially Sampled Function
Smooth

Spatial smoothing of data
Smooth.ppp

Spatial smoothing of observations at irregular points
Tstat

Third order summary statistic
allstats

Calculate four standard summary functions of a point pattern.
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
SpatialQuantile

Spatially Weighted Median or Quantile
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
Window.quadrattest

Extract Window of Spatial Object
as.data.frame.envelope

Coerce Envelope to Data Frame
as.function.fv

Convert Function Value Table to Function
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
as.function.rhohat

Convert Function Table to Function
bits.test

Balanced Independent Two-Stage Monte Carlo Test
auc

Area Under ROC Curve for Point Pattern Data
as.fv

Convert Data To Class fv
blur

Apply Gaussian Blur to a Pixel Image
as.owin.quadrattest

Convert Data To Class owin
berman.test

Berman's Tests for Point Process Model
as.tess

Convert Data To Tessellation
bind.fv

Combine Function Value Tables
bw.CvLHeat

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
boyce

Boyce Index
bw.abram.ppp

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

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

Cross Validated Bandwidth Selection for Kernel Density
bw.frac

Bandwidth Selection Based on Window Geometry
blurHeat

Diffusion Blur
bw.optim.object

Class of Optimized Bandwidths
bw.CvL.adaptive

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

Adjust Bandwidth Selection Rule to Account for Inhomogeneity
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
bw.scott

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

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

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

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

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.relriskHeatppp

Bandwidth Selection for Relative Risk using Diffusion
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
cov.im

Covariance and Correlation between Images
clarkevans.test

Clark and Evans Test
compatible.fv

Test Whether Function Objects Are Compatible
compatible.fasp

Test Whether Function Arrays Are Compatible
clusterset

Allard-Fraley Estimator of Cluster Feature
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
clarkevans

Clark and Evans Aggregation Index
circdensity

Density Estimation for Circular Data
collapse.fv

Collapse Several Function Tables into One
compileK

Generic Calculation of K Function and Pair Correlation Function
dclf.progress

Progress Plot of Test of Spatial Pattern
coxmap

Identify Dense and Sparse Regions in a Point Pattern
density.psp

Kernel Smoothing of Line Segment Pattern
dclf.sigtrace

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

Diffusion Estimate of Point Pattern Intensity
density.ppp

Kernel Smoothed Intensity of Point Pattern
densityAdaptiveKernel.ppp

Adaptive Kernel Estimate of Intensity of Point Pattern
densityAdaptiveKernel.splitppp

Adaptive Kernel Estimate of Intensity for Split Point Pattern
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
dg.sigtrace

Significance Trace of Dao-Genton Test
dimhat

Estimate Dimension of Central Subspace
distcdf

Distribution Function of Interpoint Distance
dg.envelope

Global Envelopes for Dao-Genton Test
deriv.fv

Calculate Derivative of Function Values
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
fasp.object

Function Arrays for Spatial Patterns
envelopeArray

Array of Simulation Envelopes of Summary Function
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
edge.Trans

Translation Edge Correction
envelope.envelope

Recompute Envelopes
edge.Ripley

Ripley's Isotropic Edge Correction
eval.fv

Evaluate Expression Involving Functions
eval.fasp

Evaluate Expression Involving Function Arrays
envelope

Simulation Envelopes of Summary Function
domain.quadrattest

Extract the Domain of any Spatial Object
hotbox

Heat Kernel for a Two-Dimensional Rectangle
fvnames

Abbreviations for Groups of Columns in Function Value Table
fv

Create a Function Value Table
harmonise.fv

Make Function Tables Compatible
idw

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

Extract or Change the Plot Formula for a Function Value Table
fryplot

Fry Plot of Point Pattern
increment.fv

Increments of a Function
hopskel

Hopkins-Skellam Test
fv.object

Function Value Table
localKinhom

Inhomogeneous Neighbourhood Density Function
localKdot

Local Multitype K Function (Dot-Type)
laslett

Laslett's Transform
markconnect

Mark Connection Function
localK

Neighbourhood density function
localpcf

Local pair correlation function
localKcross.inhom

Inhomogeneous Multitype K Function
localKcross

Local Multitype K Function (Cross-Type)
integral.fv

Compute Integral of Function Object
lohboot

Bootstrap Confidence Bands for Summary Function
marktable

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

Morisita Index Plot
markvario

Mark Variogram
markcrosscorr

Mark Cross-Correlation Function
markequal

Mark Equality Function
markmarkscatter

Mark-Mark Scatter Plot
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
methods.ssf

Methods for Spatially Sampled Functions
markcorr

Mark Correlation Function
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
pairs.im

Scatterplot Matrix for Pixel Images
panel.contour

Panel Plots using Colour Image or Contour Lines
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
nnequal

Nearest Neighbour Type-Equality Function
pairMean

Mean of a Function of Interpoint Distance
nnclean

Nearest Neighbour Clutter Removal
pairorient

Point Pair Orientation Distribution
nncount

Nearest Neighbour Cross-Type Occurrence Count Function
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
nnorient

Nearest Neighbour Orientation Distribution
pcfdot.inhom

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

Multitype pair correlation function (cross-type)
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
pcf.fasp

Pair Correlation Function obtained from array of K functions
pcf

Pair Correlation Function
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcfdot

Multitype pair correlation function (i-to-any)
pcf.ppp

Pair Correlation Function of Point Pattern
pcf.fv

Pair Correlation Function obtained from K Function
pcfinhom

Inhomogeneous Pair Correlation Function
plot.envelope

Plot a Simulation Envelope
plot.cdftest

Plot a Spatial Distribution Test
plot.bermantest

Plot Result of Berman Test
plot.fasp

Plot a Function Array
pcfmulti.inhom

Inhomogeneous Multitype Pair Correlation Function
pcfmulti

Marked pair correlation function
plot.laslett

Plot Laslett Transform
plot.fv

Plot Function Values
plot.quadrattest

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

Plot Result of Scan Test
plot.ssf

Plot a Spatially Sampled Function
pool

Pool Data
pool.quadrattest

Pool Several Quadrat Tests
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.envelope

Pool Data from Several Envelopes
pool.fv

Pool Several Functions
plot.studpermutest

Plot a Studentised Permutation Test
relriskHeat

Diffusion Estimate of Conditional Probabilities
reload.or.compute

Perform Computations or Retrieve Results From File
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
relrisk

Estimate of Spatially-Varying Relative Risk
rectcontact

Contact Distribution Function using Rectangular Structuring Element
quadrat.test.splitppp

Dispersion Test of CSR for Split Point Pattern Based on Quadrat Counts
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
radcumint

Radial Cumulative Integral
rat

Ratio object
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
rose

Rose Diagram
roc.rhohat

Receiver Operating Characteristic
sdr

Sufficient Dimension Reduction
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
roc

Receiver Operating Characteristic
rotmean

Rotational Average of a Pixel Image
segregation.test

Test of Spatial Segregation of Types
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
scan.test

Spatial Scan Test
spatcov

Estimate the Spatial Covariance Function of a Random Field
studpermu.test

Studentised Permutation Test
spatstat.explore-deprecated

Deprecated spatstat.explore functions
spatstat.explore-internal

Internal spatstat.explore functions
spatstat.explore-package

The spatstat.explore Package
ssf

Spatially Sampled Function
stienen

Stienen Diagram
sharpen

Data Sharpening of Point Pattern
spatialcdf

Spatial Cumulative Distribution Function
subspaceDistance

Distance Between Linear Spaces
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
youden

Youden Statistic
transect.im

Pixel Values Along a Transect
with.fv

Evaluate an Expression in a Function Table
tolcon

Tolerance Contours for Relative Risk
varblock

Estimate Variance of Summary Statistic by Subdivision
with.ssf

Evaluate Expression in a Spatially Sampled Function
thresholdCI

Confidence Interval for Threshold of Numerical Predictor