Learn R Programming

spatstat.explore (version 3.3-4)

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

39,861

Version

3.3-4

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

January 8th, 2025

Functions in spatstat.explore (3.3-4)

Finhom

Inhomogeneous Empty Space Function
G3est

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

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

Extract or Replace Subset of Function Values
Fest

Estimate the Empty Space Function or its Hazard Rate
FmultiInhom

Inhomogeneous Marked F-Function
Gcross

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

Diagnostics for random marking
Gdot.inhom

Inhomogeneous Multitype G Dot Function
Extract.fasp

Extract Subset of Function Array
Gest

Nearest Neighbour Distance Function G
[.ssf

Subset of spatially sampled function
Hest

Spherical Contact Distribution Function
Iest

Estimate the I-function
Jmulti

Marked J Function
Gmulti

Marked Nearest Neighbour Distance Function
Jmulti.inhom

Inhomogeneous Marked J-Function
GmultiInhom

Inhomogeneous Marked G-Function
K3est

K-function of a Three-Dimensional Point Pattern
Jest

Estimate the J-function
Gfox

Foxall's Distance Functions
Kmark

Mark-Weighted K Function
Gcross.inhom

Inhomogeneous Multitype G Cross Function
Gdot

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

Inhomogeneous J-function
Ginhom

Inhomogeneous Nearest Neighbour Function
Kmulti

Marked K-Function
Kcross

Multitype K Function (Cross-type)
Kmulti.inhom

Inhomogeneous Marked K-Function
Jcross

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

Inhomogeneous Multitype K Dot Function
Kest

K-function
Jdot

Multitype J Function (i-to-any)
Kmeasure

Reduced Second Moment Measure
Kest.fft

K-function using FFT
Jcross.inhom

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

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

L-function
Linhom

Inhomogeneous L-function
Kinhom

Inhomogeneous K-function
Kscaled

Locally Scaled K-function
Ldot

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

Sector K-function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Math.fasp

S3 Group Generic Methods for Function Arrays
Kcross.inhom

Inhomogeneous Cross K Function
Kdot

Multitype K Function (i-to-any)
Math.fv

S3 Group Generic Methods for Function Tables
Smooth.ssf

Smooth a Spatially Sampled Function
circdensity

Density Estimation for Circular Data
SmoothHeat

Spatial Smoothing of Data by Diffusion
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
PPversion

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

Spatial Smoothing of Observations using Diffusion Estimate of Density
dclf.sigtrace

Significance Trace of Cressie-Loosmore-Ford or Maximum Absolute Deviation Test
Lcross

Multitype L-function (cross-type)
SpatialQuantile

Spatially Weighted Median or Quantile
Lcross.inhom

Inhomogeneous Cross Type L Function
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
as.data.frame.envelope

Coerce Envelope to Data Frame
Smooth

Spatial smoothing of data
allstats

Calculate four standard summary functions of a point pattern.
as.function.fv

Convert Function Value Table to Function
bits.test

Balanced Independent Two-Stage Monte Carlo Test
alltypes

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

Area Under ROC Curve
Smooth.fv

Apply Smoothing to Function Values
berman.test

Berman's Tests for Point Process Model
Smooth.ppp

Spatial smoothing of observations at irregular points
as.fv

Convert Data To Class fv
as.function.rhohat

Convert Function Table to Function
clarkevans.test

Clark and Evans Test
Window.quadrattest

Extract Window of Spatial Object
clusterset

Allard-Fraley Estimator of Cluster Feature
blur

Apply Gaussian Blur to a Pixel Image
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
blurHeat

Diffusion Blur
boyce

Boyce Index
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
bw.pplHeat

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

Stoyan's Rule of Thumb for Bandwidth Selection
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
edge.Ripley

Ripley's Isotropic Edge Correction
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
density.ppp

Kernel Smoothed Intensity of Point Pattern
edge.Trans

Translation Edge Correction
envelope.envelope

Recompute Envelopes
Tstat

Third order summary statistic
density.psp

Kernel Smoothing of Line Segment Pattern
bw.CvLHeat

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

Select Adaptive Bandwidth for Kernel Estimation Using Cronie-Van Lieshout Criterion
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
fasp.object

Function Arrays for Spatial Patterns
formula.fv

Extract or Change the Plot Formula for a Function Value Table
bind.fv

Combine Function Value Tables
bits.envelope

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

Convert Data To Class owin
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
methods.ssf

Methods for Spatially Sampled Functions
bw.abram.ppp

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

Cross Validated Bandwidth Selection for Kernel Density
bw.frac

Bandwidth Selection Based on Window Geometry
collapse.fv

Collapse Several Function Tables into One
compatible.fasp

Test Whether Function Arrays Are Compatible
clarkevans

Clark and Evans Aggregation Index
as.tess

Convert Data To Tessellation
laslett

Laslett's Transform
bw.optim.object

Class of Optimized Bandwidths
localK

Neighbourhood density function
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.relriskHeatppp

Bandwidth Selection for Relative Risk using Diffusion
compileK

Generic Calculation of K Function and Pair Correlation Function
bw.scott

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

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

Increments of a Function
cov.im

Covariance and Correlation between Images
dimhat

Estimate Dimension of Central Subspace
localKdot

Local Multitype K Function (Dot-Type)
dclf.progress

Progress Plot of Test of Spatial Pattern
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
deriv.fv

Calculate Derivative of Function Values
localKinhom

Inhomogeneous Neighbourhood Density Function
dg.progress

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

Test Whether Function Objects Are Compatible
dg.sigtrace

Significance Trace of Dao-Genton Test
pairMean

Mean of a Function of Interpoint Distance
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
pairorient

Point Pair Orientation Distribution
fryplot

Fry Plot of Point Pattern
pcf.fv

Pair Correlation Function obtained from K Function
densityHeat

Diffusion Estimate of Point Pattern Intensity
densityAdaptiveKernel.splitppp

Adaptive Kernel Estimate of Intensity for Split Point Pattern
envelope

Simulation Envelopes of Summary Function
dg.envelope

Global Envelopes for Dao-Genton Test
eval.fasp

Evaluate Expression Involving Function Arrays
densityAdaptiveKernel.ppp

Adaptive Kernel Estimate of Intensity of Point Pattern
fv

Create a Function Value Table
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
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
hotbox

Heat Kernel for a Two-Dimensional Rectangle
pcf.ppp

Pair Correlation Function of Point Pattern
envelopeArray

Array of Simulation Envelopes of Summary Function
miplot

Morisita Index Plot
idw

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

Compute Integral of Function Object
pcfmulti

Marked pair correlation function
fv.object

Function Value Table
eval.fv

Evaluate Expression Involving Functions
plot.bermantest

Plot Result of Berman Test
markconnect

Mark Connection Function
fvnames

Abbreviations for Groups of Columns in Function Value Table
markcorr

Mark Correlation Function
markcrosscorr

Mark Cross-Correlation Function
localpcf

Local pair correlation function
localKcross

Local Multitype K Function (Cross-Type)
pool.anylist

Pool Data from a List of Objects
lohboot

Bootstrap Confidence Bands for Summary Function
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
localKcross.inhom

Inhomogeneous Multitype K Function
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
nnclean

Nearest Neighbour Clutter Removal
harmonise.fv

Make Function Tables Compatible
nnorient

Nearest Neighbour Orientation Distribution
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
plot.fasp

Plot a Function Array
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
sharpen

Data Sharpening of Point Pattern
pool.envelope

Pool Data from Several Envelopes
markmarkscatter

Mark-Mark Scatter Plot
hopskel

Hopkins-Skellam Test
sdr

Sufficient Dimension Reduction
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
spatialcdf

Spatial Cumulative Distribution Function
pcf

Pair Correlation Function
plot.fv

Plot Function Values
pcfdot

Multitype pair correlation function (i-to-any)
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
quadrat.test.splitppp

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

Compute Predictors from Sufficient Dimension Reduction
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
with.ssf

Evaluate Expression in a Spatially Sampled Function
markvario

Mark Variogram
pcfinhom

Inhomogeneous Pair Correlation Function
pairs.im

Scatterplot Matrix for Pixel Images
scan.test

Spatial Scan Test
pcf.fasp

Pair Correlation Function obtained from array of K functions
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
stienen

Stienen Diagram
studpermu.test

Studentised Permutation Test
pool.quadrattest

Pool Several Quadrat Tests
panel.contour

Panel Plots using Colour Image or Contour Lines
pcf3est

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

Plot a Spatial Distribution Test
pool.rat

Pool Data from Several Ratio Objects
plot.envelope

Plot a Simulation Envelope
pool.fasp

Pool Data from Several Function Arrays
plot.scan.test

Plot Result of Scan Test
plot.ssf

Plot a Spatially Sampled Function
varblock

Estimate Variance of Summary Statistic by Subdivision
pcfcross

Multitype pair correlation function (cross-type)
radcumint

Radial Cumulative Integral
relrisk

Estimate of Spatially-Varying Relative Risk
pool.fv

Pool Several Functions
relrisk.ppp

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

Deprecated spatstat.explore functions
rat

Ratio object
plot.laslett

Plot Laslett Transform
rose

Rose Diagram
spatstat.explore-internal

Internal spatstat.explore functions
relriskHeat

Diffusion Estimate of Conditional Probabilities
rotmean

Rotational Average of a Pixel Image
plot.quadrattest

Display the result of a quadrat counting test.
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
segregation.test

Test of Spatial Segregation of Types
plot.studpermutest

Plot a Studentised Permutation Test
spatcov

Estimate the Spatial Covariance Function of a Random Field
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
pool

Pool Data
rectcontact

Contact Distribution Function using Rectangular Structuring Element
roc

Receiver Operating Characteristic
spatstat.explore-package

The spatstat.explore Package
subspaceDistance

Distance Between Linear Spaces
with.fv

Evaluate an Expression in a Function Table
reload.or.compute

Perform Computations or Retrieve Results From File
ssf

Spatially Sampled Function
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
thresholdSelect

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

Pixel Values Along a Transect