Learn R Programming

spatstat.explore (version 3.8-2)

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

80,801

Version

3.8-2

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

July 27th, 2026

Functions in spatstat.explore (3.8-2)

Gcross

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

Inhomogeneous Marked F-Function
Finhom

Inhomogeneous Empty Space Function
Fest

Estimate the Empty Space Function or its Hazard Rate
Extract.fasp

Extract Subset of Function Array
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Extract.fv

Extract or Replace Subset of Function Values
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
[.ssf

Subset of spatially sampled function
Emark

Diagnostics for random marking
Hest

Spherical Contact Distribution Function
Gcross.inhom

Inhomogeneous Multitype G Cross Function
GmultiInhom

Inhomogeneous Marked G-Function
ISE.envelope

Integrated Squared Error on an Envelope Object
Gdot

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

Nearest Neighbour Distance Function G
Gfox

Foxall's Distance Functions
Gdot.inhom

Inhomogeneous Multitype G Dot Function
Gmulti

Marked Nearest Neighbour Distance Function
Ginhom

Inhomogeneous Nearest Neighbour Function
K3est

K-function of a Three-Dimensional Point Pattern
Jdot.inhom

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

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

Estimate the I-function
Jest

Estimate the J-function
Jmulti

Marked J Function
Jdot

Multitype J Function (i-to-any)
Jcross

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

Inhomogeneous Marked J-Function
Jinhom

Inhomogeneous J-function
Kcross.inhom

Inhomogeneous Cross K Function
Kest.fft

K-function using FFT
Kcross

Multitype K Function (Cross-type)
Kinhom

Inhomogeneous K-function
Kdot

Multitype K Function (i-to-any)
Kmark

Mark-Weighted K Function
Kmeasure

Reduced Second Moment Measure
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kest

K-function
Kmulti

Marked K-Function
Lest

L-function
Kmulti.inhom

Inhomogeneous Marked K-Function
Ksector

Sector K-function
MISE.envelope

Mean Integrated Squared Error on an Envelope Object
Kscaled

Locally Scaled K-function
Lcross

Multitype L-function (cross-type)
Linhom

Inhomogeneous L-function
Lcross.inhom

Inhomogeneous Cross Type L Function
Ldot

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

Inhomogeneous Multitype L Dot Function
Smooth.ssf

Smooth a Spatially Sampled Function
SmoothHeat

Spatial Smoothing of Data by Diffusion
Math.fv

S3 Group Generic Methods for Function Tables
Math.fasp

S3 Group Generic Methods for Function Arrays
SmoothHeat.ppp

Spatial Smoothing of Observations using Diffusion Estimate of Density
SmoothAdaptiveKernel

Spatial Smoothing of Marks using Adaptive Kernel
Smooth.ppp

Spatial smoothing of observations at irregular points
Smooth.fv

Apply Smoothing to Function Values
Smooth

Spatial smoothing of data
PPversion

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

Third order summary statistic
allstats

Calculate four standard summary functions of a point pattern.
SpatialQuantile

Spatially Weighted Median or Quantile
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
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
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
bind.fv

Combine Function Value Tables
as.function.rhohat

Convert Function Table to Function
auc

Area Under ROC Curve for Point Pattern Data
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
berman.test

Berman's Tests for Point Process Model
as.fv

Convert Data To Class fv
bits.test

Balanced Independent Two-Stage Monte Carlo Test
as.function.fv

Convert Function Value Table to Function
as.tess

Convert Data To Tessellation
as.owin.quadrattest

Convert Data To Class owin
bw.CvLHeat

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

Adjust Bandwidth Selection Rule to Account for Inhomogeneity
blurHeat

Diffusion Blur
boyce

Boyce Index
bw.CvL

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

Bandwidth Selection Based on Window Geometry
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
bw.CvL.adaptive

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

Abramson's Adaptive Bandwidths For Spatial Point Pattern
blur

Apply Gaussian Blur to a Pixel Image
bw.stoyan

Stoyan's and Fiksel's Rules of Thumb for Bandwidth for Estimating Pair Correlation
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
bw.pplHeat

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

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

Cross Validated Bandwidth Selection for Spatial Smoothing
bw.optim.object

Class of Optimized Bandwidths
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.relriskHeatppp

Bandwidth Selection for Relative Risk using Diffusion
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
clarkevans.test

Clark and Evans Test
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
clarkevans

Clark and Evans Aggregation Index
compatible.fasp

Test Whether Function Arrays Are Compatible
clusterset

Allard-Fraley Estimator of Cluster Feature
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
compatible.fv

Test Whether Function Objects Are Compatible
collapse.fv

Collapse Several Function Tables into One
circdensity

Density Estimation for Circular Data
compileK

Generic Calculation of K Function and Pair Correlation Function
density.psp

Kernel Smoothing of Line Segment Pattern
densityAdaptiveKernel.splitppp

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

Significance Trace of Cressie-Loosmore-Ford or Maximum Absolute Deviation Test
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
density.ppp

Kernel Smoothed Intensity of Point Pattern
cov.im

Covariance and Correlation between Images
densityAdaptiveKernel.ppp

Adaptive Kernel Estimate of Intensity of Point Pattern
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
coxmap

Identify Dense and Sparse Regions in a Point Pattern
dclf.progress

Progress Plot of Test of Spatial Pattern
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
dg.envelope

Global Envelopes for Dao-Genton Test
dg.sigtrace

Significance Trace of Dao-Genton Test
dimhat

Estimate Dimension of Central Subspace
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
deriv.fv

Calculate Derivative of Function Values
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
densityHeat

Diffusion Estimate of Point Pattern Intensity
edge.Trans

Translation Edge Correction
edge.Ripley

Ripley's Isotropic Edge Correction
envelope.pp3

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

Recompute Envelopes
envelope

Simulation Envelopes of Summary Function
distcdf

Distribution Function of Interpoint Distance
domain.quadrattest

Extract the Domain of any Spatial Object
envelopeArray

Array of Simulation Envelopes of Summary Function
eval.fv

Evaluate Expression Involving Functions
eval.fasp

Evaluate Expression Involving Function Arrays
hotbox

Heat Kernel for a Two-Dimensional Rectangle
fryplot

Fry Plot of Point Pattern
fasp.object

Function Arrays for Spatial Patterns
harmonise.fv

Make Function Tables Compatible
fvnames

Abbreviations for Groups of Columns in Function Value Table
fv.object

Function Value Table
formula.fv

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

Inverse-distance weighted smoothing of observations at irregular points
hopskel

Hopkins-Skellam Test
fv

Create a Function Value Table
localpcf

Local pair correlation function
integral.fv

Compute Integral of Function Object
increment.fv

Increments of a Function
localKdot

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

Inhomogeneous Multitype K Function
localKcross

Local Multitype K Function (Cross-Type)
localKinhom

Inhomogeneous Neighbourhood Density Function
lohboot

Bootstrap Confidence Bands for Summary Function
laslett

Laslett's Transform
localK

Neighbourhood density function
markcrosscorr

Mark Cross-Correlation Function
markmarkscatter

Mark-Mark Scatter Plot
markconnect

Mark Connection Function
markequal

Mark Equality Function
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
methods.ssf

Methods for Spatially Sampled Functions
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
markcorr

Mark Correlation Function
markvario

Mark Variogram
nnorient

Nearest Neighbour Orientation Distribution
nnequal

Nearest Neighbour Type-Equality Function
nncount

Nearest Neighbour Cross-Type Occurrence Count Function
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
pairorient

Point Pair Orientation Distribution
pairMean

Mean of a Function of Interpoint Distance
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
nnclean

Nearest Neighbour Clutter Removal
miplot

Morisita Index Plot
pairs.im

Scatterplot Matrix for Pixel Images
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
panel.contour

Panel Plots using Colour Image or Contour Lines
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcfcross

Multitype pair correlation function (cross-type)
pcf.ppp

Pair Correlation Function of Point Pattern
pcfdot

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

Pair Correlation Function obtained from array of K functions
pcf.fv

Pair Correlation Function obtained from K Function
pcf

Pair Correlation Function
pcfdot.inhom

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

Marked pair correlation function
plot.fv

Plot Function Values
plot.cdftest

Plot a Spatial Distribution Test
plot.laslett

Plot Laslett Transform
plot.envelope

Plot a Simulation Envelope
plot.fasp

Plot a Function Array
plot.quadrattest

Display the result of a quadrat counting test.
pcfinhom

Inhomogeneous Pair Correlation Function
pcfmulti.inhom

Inhomogeneous Multitype Pair Correlation Function
plot.bermantest

Plot Result of Berman Test
pool.fv

Pool Several Functions
pool.rat

Pool Data from Several Ratio Objects
plot.scan.test

Plot Result of Scan Test
pool

Pool Data
pool.fasp

Pool Data from Several Function Arrays
plot.studpermutest

Plot a Studentised Permutation Test
plot.ssf

Plot a Spatially Sampled Function
pool.envelope

Pool Data from Several Envelopes
pool.quadrattest

Pool Several Quadrat Tests
pool.anylist

Pool Data from a List of Objects
quadrat.test.splitppp

Dispersion Test of CSR for Split Point Pattern Based on Quadrat Counts
reload.or.compute

Perform Computations or Retrieve Results From File
relriskHeat

Diffusion Estimate of Conditional Probabilities
rat

Ratio object
ptwise.envelope

Pointwise Statistics on an Envelope Object
radcumint

Radial Cumulative Integral
rectcontact

Contact Distribution Function using Rectangular Structuring Element
relrisk

Estimate of Spatially-Varying Relative Risk
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
rose

Rose Diagram
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
rotmean

Rotational Average of a Pixel Image
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
sdr

Sufficient Dimension Reduction
roc

Receiver Operating Characteristic
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
scan.test

Spatial Scan Test
roc.rhohat

Receiver Operating Characteristic
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
studpermu.test

Studentised Permutation Test
spatialcdf

Spatial Cumulative Distribution Function
stienen

Stienen Diagram
spatstat.explore-internal

Internal spatstat.explore functions
ssf

Spatially Sampled Function
segregation.test

Test of Spatial Segregation of Types
spatstat.explore-package

The spatstat.explore Package
sharpen

Data Sharpening of Point Pattern
spatcov

Estimate the Spatial Covariance Function of a Random Field
spatstat.explore-deprecated

Deprecated spatstat.explore functions
with.ssf

Evaluate Expression in a Spatially Sampled Function
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
varblock

Estimate Variance of Summary Statistic by Subdivision
transect.im

Pixel Values Along a Transect
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
tolcon

Tolerance Contours for Relative Risk
youden

Youden Statistic
with.fv

Evaluate an Expression in a Function Table
subspaceDistance

Distance Between Linear Spaces