Learn R Programming

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

88,128

Version

3.6-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

November 22nd, 2025

Functions in spatstat.explore (3.6-0)

Gmulti

Marked Nearest Neighbour Distance Function
Gest

Nearest Neighbour Distance Function G
GmultiInhom

Inhomogeneous Marked G-Function
Gdot

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

Foxall's Distance Functions
Hest

Spherical Contact Distribution Function
Ginhom

Inhomogeneous Nearest Neighbour Function
ISE.envelope

Integrated Squared Error on an Envelope Object
Gdot.inhom

Inhomogeneous Multitype G Dot Function
Gcross.inhom

Inhomogeneous Multitype G Cross Function
Jmulti.inhom

Inhomogeneous Marked J-Function
Jcross.inhom

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

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

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

Estimate the I-function
Jmulti

Marked J Function
Jest

Estimate the J-function
Jinhom

Inhomogeneous J-function
Jcross

Multitype J Function (i-to-j)
Jdot

Multitype J Function (i-to-any)
Kinhom

Inhomogeneous K-function
Kmeasure

Reduced Second Moment Measure
Kest

K-function
Kcross.inhom

Inhomogeneous Cross K Function
Kcross

Multitype K Function (Cross-type)
Kmark

Mark-Weighted K Function
Kdot

Multitype K Function (i-to-any)
Kmulti

Marked K-Function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kest.fft

K-function using FFT
Linhom

Inhomogeneous L-function
Lcross.inhom

Inhomogeneous Cross Type L Function
Ksector

Sector K-function
Kscaled

Locally Scaled K-function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Kmulti.inhom

Inhomogeneous Marked K-Function
Lest

L-function
MISE.envelope

Mean Integrated Squared Error on an Envelope Object
Lcross

Multitype L-function (cross-type)
Ldot

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

Transform a Function into its P-P or Q-Q Version
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
SmoothHeat

Spatial Smoothing of Data by Diffusion
Smooth.fv

Apply Smoothing to Function Values
Smooth

Spatial smoothing of data
Math.fv

S3 Group Generic Methods for Function Tables
Smooth.ssf

Smooth a Spatially Sampled Function
Math.fasp

S3 Group Generic Methods for Function Arrays
Smooth.ppp

Spatial smoothing of observations at irregular points
SmoothHeat.ppp

Spatial Smoothing of Observations using Diffusion Estimate of Density
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
Window.quadrattest

Extract Window of Spatial Object
allstats

Calculate four standard summary functions of a point pattern.
as.data.frame.envelope

Coerce Envelope to Data Frame
as.function.fv

Convert Function Value Table to Function
alltypes

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

Third order summary statistic
SpatialQuantile

Spatially Weighted Median or Quantile
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
auc

Area Under ROC Curve for Point Pattern Data
bind.fv

Combine Function Value Tables
blur

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

Convert Data To Class owin
bits.test

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

Convert Function Table to Function
berman.test

Berman's Tests for Point Process Model
as.tess

Convert Data To Tessellation
bits.envelope

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

Convert Data To Class fv
bw.frac

Bandwidth Selection Based on Window Geometry
blurHeat

Diffusion Blur
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
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
bw.CvL

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

Adjust Bandwidth Selection Rule to Account for Inhomogeneity
bw.optim.object

Class of Optimized Bandwidths
boyce

Boyce Index
bw.CvLHeat

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

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.pplHeat

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

Bandwidth Selection for Relative Risk using Diffusion
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
bw.pcfinhom

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

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

Stoyan's Rule of Thumb for Bandwidth for Estimating Pair Correlation
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
compatible.fasp

Test Whether Function Arrays Are Compatible
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
clusterset

Allard-Fraley Estimator of Cluster Feature
compileK

Generic Calculation of K Function and Pair Correlation Function
clarkevans

Clark and Evans Aggregation Index
clarkevans.test

Clark and Evans Test
circdensity

Density Estimation for Circular Data
compatible.fv

Test Whether Function Objects Are Compatible
cov.im

Covariance and Correlation between Images
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
collapse.fv

Collapse Several Function Tables into One
densityHeat

Diffusion Estimate of Point Pattern Intensity
density.psp

Kernel Smoothing of Line Segment Pattern
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
dclf.progress

Progress Plot of Test of Spatial Pattern
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
density.ppp

Kernel Smoothed Intensity of Point Pattern
dclf.test

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

Adaptive Kernel Estimate of Intensity of Point 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
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
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
densityVoronoi

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

Extract the Domain of any Spatial Object
deriv.fv

Calculate Derivative of Function Values
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
edge.Ripley

Ripley's Isotropic Edge Correction
envelope

Simulation Envelopes of Summary Function
eval.fasp

Evaluate Expression Involving Function Arrays
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
eval.fv

Evaluate Expression Involving Functions
edge.Trans

Translation Edge Correction
envelope.envelope

Recompute Envelopes
fasp.object

Function Arrays for Spatial Patterns
formula.fv

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

Array of Simulation Envelopes of Summary Function
harmonise.fv

Make Function Tables Compatible
hotbox

Heat Kernel for a Two-Dimensional Rectangle
hopskel

Hopkins-Skellam Test
integral.fv

Compute Integral of Function Object
fvnames

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

Increments of a Function
idw

Inverse-distance weighted smoothing of observations at irregular points
fv

Create a Function Value Table
fryplot

Fry Plot of Point Pattern
fv.object

Function Value Table
lohboot

Bootstrap Confidence Bands for Summary Function
localKcross.inhom

Inhomogeneous Multitype K Function
localKinhom

Inhomogeneous Neighbourhood Density Function
laslett

Laslett's Transform
markconnect

Mark Connection Function
localpcf

Local pair correlation function
localKdot

Local Multitype K Function (Dot-Type)
localKcross

Local Multitype K Function (Cross-Type)
markcorr

Mark Correlation Function
localK

Neighbourhood density function
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
markvario

Mark Variogram
markcrosscorr

Mark Cross-Correlation Function
markequal

Mark Equality Function
methods.ssf

Methods for Spatially Sampled Functions
marktable

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

Morisita Index Plot
markmarkscatter

Mark-Mark Scatter Plot
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
nnclean

Nearest Neighbour Clutter Removal
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
panel.contour

Panel Plots using Colour Image or Contour Lines
nncount

Nearest Neighbour Cross-Type Occurrence Count Function
nnorient

Nearest Neighbour Orientation Distribution
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
pcf

Pair Correlation Function
pairorient

Point Pair Orientation Distribution
pairMean

Mean of a Function of Interpoint Distance
nnequal

Nearest Neighbour Type-Equality Function
pairs.im

Scatterplot Matrix for Pixel Images
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcfcross

Multitype pair correlation function (cross-type)
pcfdot

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

Pair Correlation Function obtained from array of K functions
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
pcfdot.inhom

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

Inhomogeneous Pair Correlation Function
pcfmulti

Marked pair correlation function
pcf.fv

Pair Correlation Function obtained from K Function
pcf.ppp

Pair Correlation Function of Point Pattern
plot.laslett

Plot Laslett Transform
plot.scan.test

Plot Result of Scan Test
plot.studpermutest

Plot a Studentised Permutation Test
plot.ssf

Plot a Spatially Sampled Function
plot.cdftest

Plot a Spatial Distribution Test
plot.fv

Plot Function Values
plot.quadrattest

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

Plot a Function Array
plot.bermantest

Plot Result of Berman Test
plot.envelope

Plot a Simulation Envelope
pool.envelope

Pool Data from Several Envelopes
pool.fv

Pool Several Functions
pool

Pool Data
pool.quadrattest

Pool Several Quadrat Tests
quadrat.test.splitppp

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

Pool Data from Several Function Arrays
pool.anylist

Pool Data from a List of Objects
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
ptwise.envelope

Pointwise Statistics on an Envelope Object
pool.rat

Pool Data from Several Ratio Objects
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
relrisk

Estimate of Spatially-Varying Relative Risk
reload.or.compute

Perform Computations or Retrieve Results From File
relriskHeat

Diffusion Estimate of Conditional Probabilities
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
rectcontact

Contact Distribution Function using Rectangular Structuring Element
radcumint

Radial Cumulative Integral
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
rat

Ratio object
roc

Receiver Operating Characteristic
roc.rhohat

Receiver Operating Characteristic
sdr

Sufficient Dimension Reduction
scan.test

Spatial Scan Test
segregation.test

Test of Spatial Segregation of Types
rotmean

Rotational Average of a Pixel Image
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
rose

Rose Diagram
sharpen

Data Sharpening of Point Pattern
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
spatcov

Estimate the Spatial Covariance Function of a Random Field
spatialcdf

Spatial Cumulative Distribution Function
ssf

Spatially Sampled Function
spatstat.explore-internal

Internal spatstat.explore functions
subspaceDistance

Distance Between Linear Spaces
stienen

Stienen Diagram
spatstat.explore-package

The spatstat.explore Package
studpermu.test

Studentised Permutation Test
thresholdCI

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

Deprecated spatstat.explore functions
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
youden

Youden Statistic
with.fv

Evaluate an Expression in a Function Table
transect.im

Pixel Values Along a Transect
with.ssf

Evaluate Expression in a Spatially Sampled Function
varblock

Estimate Variance of Summary Statistic by Subdivision
tolcon

Tolerance Contours for Relative Risk
Extract.fv

Extract or Replace Subset of Function Values
[.ssf

Subset of spatially sampled function
Extract.fasp

Extract Subset of Function Array
FmultiInhom

Inhomogeneous Marked F-Function
G3est

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

Estimate the Empty Space Function or its Hazard Rate
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Gcross

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

Inhomogeneous Empty Space Function
Emark

Diagnostics for random marking