Learn R Programming

spatstat.explore (version 3.5-3)

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

60,777

Version

3.5-3

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

September 22nd, 2025

Functions in spatstat.explore (3.5-3)

Gmulti

Marked Nearest Neighbour Distance Function
Gfox

Foxall's Distance Functions
GmultiInhom

Inhomogeneous Marked G-Function
Gdot.inhom

Inhomogeneous Multitype G Dot Function
ISE.envelope

Integrated Squared Error on an Envelope Object
Hest

Spherical Contact Distribution Function
Gdot

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

Inhomogeneous Multitype G Cross Function
Ginhom

Inhomogeneous Nearest Neighbour Function
Gest

Nearest Neighbour Distance Function G
K3est

K-function of a Three-Dimensional Point Pattern
Jinhom

Inhomogeneous J-function
Jdot.inhom

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

Inhomogeneous Marked J-Function
Jest

Estimate the J-function
Jmulti

Marked J Function
Jcross.inhom

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

Multitype J Function (i-to-any)
Iest

Estimate the I-function
Jcross

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

Inhomogeneous Cross K Function
Kcross

Multitype K Function (Cross-type)
Kmeasure

Reduced Second Moment Measure
Kmulti

Marked K-Function
Kest

K-function
Kest.fft

K-function using FFT
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kdot

Multitype K Function (i-to-any)
Kinhom

Inhomogeneous K-function
Kmark

Mark-Weighted K Function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
MISE.envelope

Mean Integrated Squared Error on an Envelope Object
Lest

L-function
Ksector

Sector K-function
Linhom

Inhomogeneous L-function
Lcross

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

Inhomogeneous Cross Type L Function
Ldot

Multitype L-function (i-to-any)
SmoothHeat.ppp

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

Apply Smoothing to Function Values
Smooth.ppp

Spatial smoothing of observations at irregular points
PPversion

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

Spatial Smoothing of Data by Diffusion
Kscaled

Locally Scaled K-function
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
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
Kmulti.inhom

Inhomogeneous Marked K-Function
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
Tstat

Third order summary statistic
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
allstats

Calculate four standard summary functions of a point pattern.
SpatialQuantile

Spatially Weighted Median or Quantile
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
Window.quadrattest

Extract Window of Spatial Object
as.function.fv

Convert Function Value Table to Function
as.data.frame.envelope

Coerce Envelope to Data Frame
alltypes

Calculate Summary Statistic for All Types in a Multitype 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
bits.test

Balanced Independent Two-Stage Monte Carlo Test
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
as.owin.quadrattest

Convert Data To Class owin
as.tess

Convert Data To Tessellation
blur

Apply Gaussian Blur to a Pixel Image
bind.fv

Combine Function Value Tables
as.fv

Convert Data To Class fv
bw.CvLHeat

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

Diffusion Blur
bw.optim.object

Class of Optimized Bandwidths
bw.bdh

Adjust Bandwidth Selection Rule to Account for Inhomogeneity
bw.frac

Bandwidth Selection Based on Window Geometry
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
boyce

Boyce Index
bw.CvL.adaptive

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

Cross Validated Bandwidth Selection for Kernel Density
bw.abram.ppp

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

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
bw.scott

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

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

Bandwidth Selection for Relative Risk using Diffusion
bw.stoyan

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

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

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

Cross Validated Bandwidth Selection for Relative Risk Estimation
circdensity

Density Estimation for Circular Data
compileK

Generic Calculation of K Function and Pair Correlation Function
clarkevans

Clark and Evans Aggregation Index
compatible.fv

Test Whether Function Objects Are Compatible
clarkevans.test

Clark and Evans Test
compatible.fasp

Test Whether Function Arrays Are Compatible
collapse.fv

Collapse Several Function Tables into One
clusterset

Allard-Fraley Estimator of Cluster Feature
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
cov.im

Covariance and Correlation between Images
dclf.progress

Progress Plot of Test of Spatial Pattern
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
densityHeat

Diffusion Estimate of Point Pattern Intensity
dclf.sigtrace

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

Kernel Smoothing of Line Segment Pattern
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
density.ppp

Kernel Smoothed Intensity of Point Pattern
densityAdaptiveKernel.splitppp

Adaptive Kernel Estimate of Intensity for Split Point Pattern
densityVoronoi

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

Significance Trace of Dao-Genton Test
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
distcdf

Distribution Function of Interpoint Distance
dg.test

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

Kernel Estimate of Intensity as a Spatial Function
dimhat

Estimate Dimension of Central Subspace
domain.quadrattest

Extract the Domain of any Spatial Object
deriv.fv

Calculate Derivative of Function Values
dg.envelope

Global Envelopes for Dao-Genton Test
eval.fv

Evaluate Expression Involving Functions
fasp.object

Function Arrays for Spatial Patterns
envelope.envelope

Recompute Envelopes
envelope

Simulation Envelopes of Summary Function
edge.Ripley

Ripley's Isotropic Edge Correction
eval.fasp

Evaluate Expression Involving Function Arrays
edge.Trans

Translation Edge Correction
envelope.pp3

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

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

Array of Simulation Envelopes of Summary Function
hotbox

Heat Kernel for a Two-Dimensional Rectangle
fryplot

Fry Plot of Point Pattern
harmonise.fv

Make Function Tables Compatible
idw

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

Function Value Table
fvnames

Abbreviations for Groups of Columns in Function Value Table
hopskel

Hopkins-Skellam Test
fv

Create a Function Value Table
increment.fv

Increments of a Function
integral.fv

Compute Integral of Function Object
laslett

Laslett's Transform
markconnect

Mark Connection Function
localKdot

Local Multitype K Function (Dot-Type)
markcorr

Mark Correlation Function
lohboot

Bootstrap Confidence Bands for Summary Function
localpcf

Local pair correlation function
localK

Neighbourhood density function
localKcross

Local Multitype K Function (Cross-Type)
localKinhom

Inhomogeneous Neighbourhood Density Function
localKcross.inhom

Inhomogeneous Multitype K Function
markmarkscatter

Mark-Mark Scatter Plot
miplot

Morisita Index Plot
markvario

Mark Variogram
methods.ssf

Methods for Spatially Sampled Functions
markcrosscorr

Mark Cross-Correlation Function
marktable

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

Diagnostics for random marking
Extract.fv

Extract or Replace Subset of Function Values
Extract.fasp

Extract Subset of Function Array
G3est

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

Inhomogeneous Empty Space Function
[.ssf

Subset of spatially sampled function
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Fest

Estimate the Empty Space Function or its Hazard Rate
Gcross

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

Inhomogeneous Marked F-Function
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
nnclean

Nearest Neighbour Clutter Removal
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
pcf.fv

Pair Correlation Function obtained from K Function
pairs.im

Scatterplot Matrix for Pixel Images
pcf

Pair Correlation Function
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
nnorient

Nearest Neighbour Orientation Distribution
pairMean

Mean of a Function of Interpoint Distance
pcf.fasp

Pair Correlation Function obtained from array of K functions
pairorient

Point Pair Orientation Distribution
pcf.ppp

Pair Correlation Function of Point Pattern
panel.contour

Panel Plots using Colour Image or Contour Lines
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcfinhom

Inhomogeneous Pair Correlation Function
pcfdot

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

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
plot.bermantest

Plot Result of Berman Test
pool.anylist

Pool Data from a List of Objects
plot.quadrattest

Display the result of a quadrat counting test.
pcfmulti

Marked pair correlation function
plot.envelope

Plot a Simulation Envelope
plot.cdftest

Plot a Spatial Distribution Test
plot.laslett

Plot Laslett Transform
pool.envelope

Pool Data from Several Envelopes
pool

Pool Data
plot.studpermutest

Plot a Studentised Permutation Test
plot.fasp

Plot a Function Array
plot.fv

Plot Function Values
rat

Ratio object
rectcontact

Contact Distribution Function using Rectangular Structuring Element
quadrat.test

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

Pointwise Statistics on an Envelope Object
plot.scan.test

Plot Result of Scan Test
plot.ssf

Plot a Spatially Sampled Function
pcfcross

Multitype pair correlation function (cross-type)
quadrat.test.splitppp

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

Pair Correlation Function of a Three-Dimensional Point Pattern
radcumint

Radial Cumulative Integral
rotmean

Rotational Average of a Pixel Image
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
rose

Rose Diagram
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
relriskHeat

Diffusion Estimate of Conditional Probabilities
pool.fasp

Pool Data from Several Function Arrays
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
pool.fv

Pool Several Functions
roc

Receiver Operating Characteristic
reload.or.compute

Perform Computations or Retrieve Results From File
relrisk

Estimate of Spatially-Varying Relative Risk
spatstat.explore-deprecated

Deprecated spatstat.explore functions
roc.rhohat

Receiver Operating Characteristic
pool.rat

Pool Data from Several Ratio Objects
sdr

Sufficient Dimension Reduction
sharpen

Data Sharpening of Point Pattern
spatialcdf

Spatial Cumulative Distribution Function
pool.quadrattest

Pool Several Quadrat Tests
spatcov

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

Test of Spatial Segregation of Types
spatstat.explore-internal

Internal spatstat.explore functions
scan.test

Spatial Scan Test
subspaceDistance

Distance Between Linear Spaces
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
stienen

Stienen Diagram
ssf

Spatially Sampled Function
studpermu.test

Studentised Permutation Test
spatstat.explore-package

The spatstat.explore Package
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
varblock

Estimate Variance of Summary Statistic by Subdivision
with.fv

Evaluate an Expression in a Function Table
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
transect.im

Pixel Values Along a Transect
youden

Youden Statistic
with.ssf

Evaluate Expression in a Spatially Sampled Function