Learn R Programming

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

56,843

Version

3.5-2

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

July 22nd, 2025

Functions in spatstat.explore (3.5-2)

[.ssf

Subset of spatially sampled function
Fest

Estimate the Empty Space Function or its Hazard Rate
Emark

Diagnostics for random marking
Finhom

Inhomogeneous Empty Space Function
Extract.fasp

Extract Subset of Function Array
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Gcross

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

Inhomogeneous Multitype G Dot Function
Hest

Spherical Contact Distribution Function
Gcross.inhom

Inhomogeneous Multitype G Cross Function
Gmulti

Marked Nearest Neighbour Distance Function
Gest

Nearest Neighbour Distance Function G
Gdot

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

Foxall's Distance Functions
ISE.envelope

Integrated Squared Error on an Envelope Object
Ginhom

Inhomogeneous Nearest Neighbour Function
GmultiInhom

Inhomogeneous Marked G-Function
Jdot.inhom

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

Inhomogeneous Marked J-Function
Jinhom

Inhomogeneous J-function
Iest

Estimate the I-function
K3est

K-function of a Three-Dimensional Point Pattern
Jcross

Multitype J Function (i-to-j)
Jest

Estimate the J-function
Jmulti

Marked J Function
Jdot

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

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

K-function
Kmulti

Marked K-Function
Kmeasure

Reduced Second Moment Measure
Kcross

Multitype K Function (Cross-type)
Kest.fft

K-function using FFT
Kdot

Multitype K Function (i-to-any)
Kinhom

Inhomogeneous K-function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kmark

Mark-Weighted K Function
Kcross.inhom

Inhomogeneous Cross K Function
Ldot

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

Multitype L-function (cross-type)
Lest

L-function
Ksector

Sector K-function
Lcross.inhom

Inhomogeneous Cross Type L Function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Kscaled

Locally Scaled K-function
Kmulti.inhom

Inhomogeneous Marked K-Function
MISE.envelope

Mean Integrated Squared Error on an Envelope Object
Linhom

Inhomogeneous L-function
Math.fasp

S3 Group Generic Methods for Function Arrays
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
SmoothHeat.ppp

Spatial Smoothing of Observations using Diffusion Estimate of Density
Smooth

Spatial smoothing of data
PPversion

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

Spatially Weighted Median of Values at Points
Smooth.ssf

Smooth a Spatially Sampled Function
SmoothHeat

Spatial Smoothing of Data by Diffusion
allstats

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

Coerce Envelope to Data Frame
SpatialQuantile

Spatially Weighted Median or Quantile
Smooth.ppp

Spatial smoothing of observations at irregular points
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
Window.quadrattest

Extract Window of Spatial Object
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
Tstat

Third order summary statistic
as.function.fv

Convert Function Value Table to Function
berman.test

Berman's Tests for Point Process Model
bits.envelope

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

Convert Data To Tessellation
bind.fv

Combine Function Value Tables
as.fv

Convert Data To Class fv
bits.test

Balanced Independent Two-Stage Monte Carlo Test
blur

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

Convert Data To Class owin
auc

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

Convert Function Table to Function
boyce

Boyce Index
bw.CvLHeat

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

Class of Optimized Bandwidths
blurHeat

Diffusion Blur
bw.abram.ppp

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

Bandwidth Selection Based on Window Geometry
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
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.scott

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

Cross Validated Bandwidth Selection for Kernel Density
bw.stoyan

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

Cross Validated Bandwidth Selection for Relative Risk Estimation
bw.relriskHeatppp

Bandwidth Selection for Relative Risk using Diffusion
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
bw.pcfinhom

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

Cross Validated Bandwidth Selection for Pair Correlation Function
cdf.test

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

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

Likelihood Cross Validation Bandwidth Selection for Kernel Density
circdensity

Density Estimation for Circular Data
clusterset

Allard-Fraley Estimator of Cluster Feature
collapse.fv

Collapse Several Function Tables into One
compatible.fv

Test Whether Function Objects Are Compatible
clarkevans.test

Clark and Evans Test
compatible.fasp

Test Whether Function Arrays Are Compatible
clarkevans

Clark and Evans Aggregation Index
compileK

Generic Calculation of K Function and Pair Correlation Function
cov.im

Covariance and Correlation between Images
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
dclf.progress

Progress Plot of Test of Spatial Pattern
dclf.sigtrace

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

Kernel Smoothing of Line Segment Pattern
densityHeat

Diffusion Estimate of Point Pattern Intensity
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
dclf.test

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

Diffusion Estimate of Point Pattern Intensity
densityAdaptiveKernel.ppp

Adaptive Kernel Estimate of Intensity of Point Pattern
densityAdaptiveKernel.splitppp

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

Kernel Smoothed Intensity of Point Pattern
dimhat

Estimate Dimension of Central Subspace
dg.envelope

Global Envelopes for Dao-Genton Test
distcdf

Distribution Function of Interpoint Distance
deriv.fv

Calculate Derivative of Function Values
dg.sigtrace

Significance Trace of Dao-Genton Test
domain.quadrattest

Extract the Domain of any Spatial Object
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
densityVoronoi

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

Dao-Genton Adjusted Goodness-Of-Fit Test
edge.Ripley

Ripley's Isotropic Edge Correction
envelope.envelope

Recompute Envelopes
eval.fasp

Evaluate Expression Involving Function Arrays
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
fasp.object

Function Arrays for Spatial Patterns
envelope

Simulation Envelopes of Summary Function
edge.Trans

Translation Edge Correction
formula.fv

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

Array of Simulation Envelopes of Summary Function
eval.fv

Evaluate Expression Involving Functions
fryplot

Fry Plot of Point Pattern
fv

Create a Function Value Table
harmonise.fv

Make Function Tables Compatible
hopskel

Hopkins-Skellam Test
hotbox

Heat Kernel for a Two-Dimensional Rectangle
idw

Inverse-distance weighted smoothing of observations at irregular points
localKcross

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

Inhomogeneous Multitype K Function
increment.fv

Increments of a Function
integral.fv

Compute Integral of Function Object
localKdot

Local Multitype K Function (Dot-Type)
fvnames

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

Function Value Table
localKinhom

Inhomogeneous Neighbourhood Density Function
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
localK

Neighbourhood density function
markvario

Mark Variogram
marktable

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

Nearest Neighbour Clutter Removal
localpcf

Local pair correlation function
lohboot

Bootstrap Confidence Bands for Summary Function
laslett

Laslett's Transform
markcrosscorr

Mark Cross-Correlation Function
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
miplot

Morisita Index Plot
markmarkscatter

Mark-Mark Scatter Plot
pairMean

Mean of a Function of Interpoint Distance
methods.ssf

Methods for Spatially Sampled Functions
markcorr

Mark Correlation Function
markconnect

Mark Connection Function
pairorient

Point Pair Orientation Distribution
pcf.fasp

Pair Correlation Function obtained from array of K functions
pcf

Pair Correlation Function
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
nnorient

Nearest Neighbour Orientation Distribution
pcf.fv

Pair Correlation Function obtained from K Function
pcf.ppp

Pair Correlation Function of Point Pattern
panel.contour

Panel Plots using Colour Image or Contour Lines
pairs.im

Scatterplot Matrix for Pixel Images
pcfdot.inhom

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

Inhomogeneous Pair Correlation Function
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcfdot

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

Multitype pair correlation function (cross-type)
pcf3est

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

Plot a Function Array
plot.cdftest

Plot a Spatial Distribution Test
plot.scan.test

Plot Result of Scan Test
plot.ssf

Plot a Spatially Sampled Function
plot.laslett

Plot Laslett Transform
plot.quadrattest

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

Plot Function Values
pcfmulti

Marked pair correlation function
pool.anylist

Pool Data from a List of Objects
ptwise.envelope

Pointwise Statistics on an Envelope Object
pool.envelope

Pool Data from Several Envelopes
plot.bermantest

Plot Result of Berman Test
rat

Ratio object
plot.envelope

Plot a Simulation Envelope
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
reload.or.compute

Perform Computations or Retrieve Results From File
pool

Pool Data
plot.studpermutest

Plot a Studentised Permutation Test
roc

Receiver Operating Characteristic
scan.test

Spatial Scan Test
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
roc.rhohat

Receiver Operating Characteristic
spatstat.explore-deprecated

Deprecated spatstat.explore functions
spatstat.explore-internal

Internal spatstat.explore functions
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
varblock

Estimate Variance of Summary Statistic by Subdivision
subspaceDistance

Distance Between Linear Spaces
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
with.ssf

Evaluate Expression in a Spatially Sampled Function
youden

Youden Statistic
FmultiInhom

Inhomogeneous Marked F-Function
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
Extract.fv

Extract or Replace Subset of Function Values
pool.rat

Pool Data from Several Ratio Objects
pool.quadrattest

Pool Several Quadrat Tests
pool.fasp

Pool Data from Several Function Arrays
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
rose

Rose Diagram
pool.fv

Pool Several Functions
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
rotmean

Rotational Average of a Pixel Image
rectcontact

Contact Distribution Function using Rectangular Structuring Element
sharpen

Data Sharpening of Point Pattern
relrisk

Estimate of Spatially-Varying Relative Risk
segregation.test

Test of Spatial Segregation of Types
spatcov

Estimate the Spatial Covariance Function of a Random Field
quadrat.test.splitppp

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

Radial Cumulative Integral
spatialcdf

Spatial Cumulative Distribution Function
with.fv

Evaluate an Expression in a Function Table
stienen

Stienen Diagram
sdr

Sufficient Dimension Reduction
ssf

Spatially Sampled Function
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
relriskHeat

Diffusion Estimate of Conditional Probabilities
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
spatstat.explore-package

The spatstat.explore Package
studpermu.test

Studentised Permutation Test
transect.im

Pixel Values Along a Transect