Learn R Programming

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

61,089

Version

3.4-2

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

March 21st, 2025

Functions in spatstat.explore (3.4-2)

Emark

Diagnostics for random marking
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Finhom

Inhomogeneous Empty Space Function
Fest

Estimate the Empty Space Function or its Hazard Rate
[.ssf

Subset of spatially sampled function
G3est

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

Inhomogeneous Marked F-Function
Extract.fv

Extract or Replace Subset of Function Values
Extract.fasp

Extract Subset of Function Array
Gcross

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

Marked Nearest Neighbour Distance Function
Gcross.inhom

Inhomogeneous Multitype G Cross Function
GmultiInhom

Inhomogeneous Marked G-Function
Hest

Spherical Contact Distribution Function
Gdot.inhom

Inhomogeneous Multitype G Dot Function
Gest

Nearest Neighbour Distance Function G
ISE.envelope

Integrated Squared Error on an Envelope Object
Gfox

Foxall's Distance Functions
Gdot

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

Inhomogeneous Nearest Neighbour Function
Jdot.inhom

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

Multitype J Function (i-to-j)
Iest

Estimate the I-function
K3est

K-function of a Three-Dimensional Point Pattern
Jest

Estimate the J-function
Jcross.inhom

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

Inhomogeneous Marked J-Function
Jdot

Multitype J Function (i-to-any)
Jinhom

Inhomogeneous J-function
Jmulti

Marked J Function
Kmeasure

Reduced Second Moment Measure
Kinhom

Inhomogeneous K-function
Kest.fft

K-function using FFT
Kcross.inhom

Inhomogeneous Cross K Function
Kest

K-function
Kcross

Multitype K Function (Cross-type)
Kmark

Mark-Weighted K Function
Kdot

Multitype K Function (i-to-any)
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kmulti

Marked K-Function
Kmulti.inhom

Inhomogeneous Marked K-Function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Linhom

Inhomogeneous L-function
Lest

L-function
MISE.envelope

Mean Integrated Squared Error on an Envelope Object
Ksector

Sector K-function
Kscaled

Locally Scaled K-function
Lcross.inhom

Inhomogeneous Cross Type L Function
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
Ldot

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

Multitype L-function (cross-type)
Math.fasp

S3 Group Generic Methods for Function Arrays
Tstat

Third order summary statistic
Math.fv

S3 Group Generic Methods for Function Tables
Smooth.ssf

Smooth a Spatially Sampled Function
Smooth.fv

Apply Smoothing to Function Values
as.data.frame.envelope

Coerce Envelope to Data Frame
PPversion

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

Spatial Smoothing of Data by Diffusion
as.function.fv

Convert Function Value Table to Function
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
as.owin.quadrattest

Convert Data To Class owin
bw.CvL.adaptive

Select Adaptive Bandwidth for Kernel Estimation Using Cronie-Van Lieshout Criterion
Smooth

Spatial smoothing of data
allstats

Calculate four standard summary functions of a point pattern.
alltypes

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

Spatial smoothing of observations at irregular points
as.tess

Convert Data To Tessellation
bw.scott

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

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
SmoothHeat.ppp

Spatial Smoothing of Observations using Diffusion Estimate of Density
as.function.rhohat

Convert Function Table to Function
bw.abram.ppp

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

Cross Validated Bandwidth Selection for Spatial Smoothing
dclf.progress

Progress Plot of Test of Spatial Pattern
collapse.fv

Collapse Several Function Tables into One
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
dclf.sigtrace

Significance Trace of Cressie-Loosmore-Ford or Maximum Absolute Deviation Test
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
compatible.fasp

Test Whether Function Arrays Are Compatible
as.fv

Convert Data To Class fv
bits.test

Balanced Independent Two-Stage Monte Carlo Test
deriv.fv

Calculate Derivative of Function Values
SpatialQuantile

Spatially Weighted Median or Quantile
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
densityAdaptiveKernel.ppp

Adaptive Kernel Estimate of Intensity of Point Pattern
blur

Apply Gaussian Blur to a Pixel Image
blurHeat

Diffusion Blur
auc

Area Under ROC Curve
dg.envelope

Global Envelopes for Dao-Genton Test
densityAdaptiveKernel.splitppp

Adaptive Kernel Estimate of Intensity for Split Point Pattern
distcdf

Distribution Function of Interpoint Distance
domain.quadrattest

Extract the Domain of any Spatial Object
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
boyce

Boyce Index
Window.quadrattest

Extract Window of Spatial Object
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
bw.pplHeat

Bandwidth Selection for Diffusion Smoother by Likelihood Cross-Validation
bind.fv

Combine Function Value Tables
bits.envelope

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

Test Whether Function Objects Are Compatible
berman.test

Berman's Tests for Point Process Model
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
bw.frac

Bandwidth Selection Based on Window Geometry
envelopeArray

Array of Simulation Envelopes of Summary Function
bw.optim.object

Class of Optimized Bandwidths
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth for Estimating Pair Correlation
fasp.object

Function Arrays for Spatial Patterns
localKdot

Local Multitype K Function (Dot-Type)
formula.fv

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

Fry Plot of Point Pattern
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
densityHeat

Diffusion Estimate of Point Pattern Intensity
fv

Create a Function Value Table
bw.relriskHeatppp

Bandwidth Selection for Relative Risk using Diffusion
clarkevans.test

Clark and Evans Test
bw.bdh

Adjust Bandwidth Selection Rule to Account for Inhomogeneity
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
localKinhom

Inhomogeneous Neighbourhood Density Function
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
clusterset

Allard-Fraley Estimator of Cluster Feature
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.pcfinhom

Cross Validated Bandwidth Selection for Inhomogeneous Pair Correlation Function
compileK

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

Covariance and Correlation between Images
density.psp

Kernel Smoothing of Line Segment Pattern
circdensity

Density Estimation for Circular Data
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
edge.Ripley

Ripley's Isotropic Edge Correction
density.ppp

Kernel Smoothed Intensity of Point Pattern
dg.progress

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

Function Value Table
clarkevans

Clark and Evans Aggregation Index
laslett

Laslett's Transform
fvnames

Abbreviations for Groups of Columns in Function Value Table
edge.Trans

Translation Edge Correction
methods.ssf

Methods for Spatially Sampled Functions
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
markconnect

Mark Connection Function
localK

Neighbourhood density function
markcrosscorr

Mark Cross-Correlation Function
hotbox

Heat Kernel for a Two-Dimensional Rectangle
miplot

Morisita Index Plot
dg.sigtrace

Significance Trace of Dao-Genton Test
dimhat

Estimate Dimension of Central Subspace
eval.fasp

Evaluate Expression Involving Function Arrays
idw

Inverse-distance weighted smoothing of observations at irregular points
pcf

Pair Correlation Function
envelope

Simulation Envelopes of Summary Function
markcorr

Mark Correlation Function
marktable

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

Mark Variogram
envelope.envelope

Recompute Envelopes
eval.fv

Evaluate Expression Involving Functions
increment.fv

Increments of a Function
markmarkscatter

Mark-Mark Scatter Plot
integral.fv

Compute Integral of Function Object
pcf.fv

Pair Correlation Function obtained from K Function
pcf.ppp

Pair Correlation Function of Point Pattern
harmonise.fv

Make Function Tables Compatible
pcfdot.inhom

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

Inhomogeneous Pair Correlation Function
localpcf

Local pair correlation function
pcf.fasp

Pair Correlation Function obtained from array of K functions
localKcross

Local Multitype K Function (Cross-Type)
pairMean

Mean of a Function of Interpoint Distance
pool.anylist

Pool Data from a List of Objects
pairorient

Point Pair Orientation Distribution
hopskel

Hopkins-Skellam Test
plot.scan.test

Plot Result of Scan Test
pcf3est

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

Plot a Spatially Sampled Function
lohboot

Bootstrap Confidence Bands for Summary Function
pcfmulti

Marked pair correlation function
pcfcross

Multitype pair correlation function (cross-type)
localKcross.inhom

Inhomogeneous Multitype K Function
nnclean

Nearest Neighbour Clutter Removal
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
plot.fasp

Plot a Function Array
plot.bermantest

Plot Result of Berman Test
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
plot.cdftest

Plot a Spatial Distribution Test
plot.envelope

Plot a Simulation Envelope
pool.envelope

Pool Data from Several Envelopes
plot.fv

Plot Function Values
rat

Ratio object
pool.fasp

Pool Data from Several Function Arrays
rectcontact

Contact Distribution Function using Rectangular Structuring Element
rotmean

Rotational Average of a Pixel Image
ptwise.envelope

Pointwise Statistics on an Envelope Object
scan.test

Spatial Scan Test
plot.laslett

Plot Laslett Transform
pool.fv

Pool Several Functions
reload.or.compute

Perform Computations or Retrieve Results From File
plot.quadrattest

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

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
relrisk

Estimate of Spatially-Varying Relative Risk
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
spatstat.explore-internal

Internal spatstat.explore functions
spatialcdf

Spatial Cumulative Distribution Function
quadrat.test.splitppp

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

Receiver Operating Characteristic
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
relriskHeat

Diffusion Estimate of Conditional Probabilities
spatstat.explore-package

The spatstat.explore Package
sharpen

Data Sharpening of Point Pattern
radcumint

Radial Cumulative Integral
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
spatcov

Estimate the Spatial Covariance Function of a Random Field
rose

Rose Diagram
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
nnorient

Nearest Neighbour Orientation Distribution
spatstat.explore-deprecated

Deprecated spatstat.explore functions
ssf

Spatially Sampled Function
segregation.test

Test of Spatial Segregation of Types
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
stienen

Stienen Diagram
transect.im

Pixel Values Along a Transect
pcfdot

Multitype pair correlation function (i-to-any)
plot.studpermutest

Plot a Studentised Permutation Test
pool

Pool Data
studpermu.test

Studentised Permutation Test
subspaceDistance

Distance Between Linear Spaces
pool.quadrattest

Pool Several Quadrat Tests
pool.rat

Pool Data from Several Ratio Objects
varblock

Estimate Variance of Summary Statistic by Subdivision
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
sdr

Sufficient Dimension Reduction
with.fv

Evaluate an Expression in a Function Table
with.ssf

Evaluate Expression in a Spatially Sampled Function