Learn R Programming

⚠️There's a newer version (3.4-2) of this package.Take me there.

spatstat.explore (version 3.2-6)

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.2-6

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

February 1st, 2024

Functions in spatstat.explore (3.2-6)

CDF

Cumulative Distribution Function From Kernel Density Estimate
FmultiInhom

Inhomogeneous Marked F-Function
[.ssf

Subset of spatially sampled function
Fest

Estimate the Empty Space Function or its Hazard Rate
G3est

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

Inhomogeneous Empty Space Function
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Emark

Diagnostics for random marking
Extract.fasp

Extract Subset of Function Array
Extract.fv

Extract or Replace Subset of Function Values
Gcross

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

Nearest Neighbour Distance Function G
Ginhom

Inhomogeneous Nearest Neighbour Function
GmultiInhom

Inhomogeneous Marked G-Function
Gdot

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

Spherical Contact Distribution Function
Gcross.inhom

Inhomogeneous Multitype G Cross Function
Jmulti.inhom

Inhomogeneous Marked J-Function
Gfox

Foxall's Distance Functions
Jcross.inhom

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

K-function of a Three-Dimensional Point Pattern
Jdot

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

Inhomogeneous Multitype G Dot Function
Iest

Estimate the I-function
Gmulti

Marked Nearest Neighbour Distance Function
Jcross

Multitype J Function (i-to-j)
Jinhom

Inhomogeneous J-function
Jmulti

Marked J Function
Jdot.inhom

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

Reduced Second Moment Measure
Kcross

Multitype K Function (Cross-type)
Kmulti

Marked K-Function
Lcross.inhom

Inhomogeneous Cross Type L Function
Jest

Estimate the J-function
Ldot

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

Multitype K Function (i-to-any)
Kinhom

Inhomogeneous K-function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kcross.inhom

Inhomogeneous Cross K Function
Kmark

Mark-Weighted K Function
Kest

K-function
Kmulti.inhom

Inhomogeneous Marked K-Function
Kscaled

Locally Scaled K-function
SpatialQuantile

Spatially Weighted Median or Quantile
SpatialQuantile.ppp

Spatially Weighted Quantile of Values at Points
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
Kest.fft

K-function using FFT
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Linhom

Inhomogeneous L-function
Ksector

Sector K-function
Lcross

Multitype L-function (cross-type)
Lest

L-function
blur

Apply Gaussian Blur to a Pixel Image
boyce

Boyce Index
Math.fasp

S3 Group Generic Methods for Function Arrays
Smooth.ppp

Spatial smoothing of observations at irregular points
Math.fv

S3 Group Generic Methods for Function Tables
Smooth.ssf

Smooth a Spatially Sampled Function
Smooth

Spatial smoothing of data
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
allstats

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

Convert Data To Class fv
as.owin.quadrattest

Convert Data To Class owin
Smooth.fv

Apply Smoothing to Function Values
collapse.fv

Collapse Several Function Tables into One
PPversion

Transform a Function into its P-P or Q-Q Version
berman.test

Berman's Tests for Point Process Model
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bind.fv

Combine Function Value Tables
as.function.fv

Convert Function Value Table to Function
as.function.rhohat

Convert Function Table to Function
bw.pplHeat

Bandwidth Selection for Diffusion Smoother by Likelihood Cross-Validation
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
as.data.frame.envelope

Coerce Envelope to Data Frame
density.ppp

Kernel Smoothed Intensity of Point Pattern
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
compatible.fasp

Test Whether Function Arrays Are Compatible
bw.abram.ppp

Abramson's Adaptive Bandwidths For Spatial Point Pattern
densityAdaptiveKernel

Adaptive Kernel Estimate of Intensity of Point Pattern
Tstat

Third order summary statistic
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
as.tess

Convert Data To Tessellation
auc

Area Under ROC Curve
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
circdensity

Density Estimation for Circular Data
dclf.progress

Progress Plot of Test of Spatial Pattern
Window.quadrattest

Extract Window of Spatial Object
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
dclf.sigtrace

Significance Trace of Cressie-Loosmore-Ford or Maximum Absolute Deviation Test
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
densityAdaptiveKernel.splitppp

Adaptive Kernel Estimate of Intensity for Split Point Pattern
compatible.fv

Test Whether Function Objects Are Compatible
deriv.fv

Calculate Derivative of Function Values
envelope.envelope

Recompute Envelopes
bw.CvLHeat

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
dg.envelope

Global Envelopes for Dao-Genton Test
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
idw

Inverse-distance weighted smoothing of observations at irregular points
bits.test

Balanced Independent Two-Stage Monte Carlo Test
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
bw.abram

Abramson's Adaptive Bandwidths
clarkevans

Clark and Evans Aggregation Index
densityHeat

Diffusion Estimate of Point Pattern Intensity
edge.Trans

Translation Edge Correction
bw.frac

Bandwidth Selection Based on Window Geometry
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
distcdf

Distribution Function of Interpoint Distance
dkernel

Kernel distributions and random generation
bw.optim.object

Class of Optimized Bandwidths
clarkevans.test

Clark and Evans Test
increment.fv

Increments of a Function
fvnames

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

Evaluate Expression Involving Functions
harmonise.fv

Make Function Tables Compatible
envelope

Simulation Envelopes of Summary Function
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
clusterset

Allard-Fraley Estimator of Cluster Feature
formula.fv

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

Fry Plot of Point Pattern
integral.fv

Compute Integral of Function Object
localKdot

Local Multitype K Function (Dot-Type)
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
fasp.object

Function Arrays for Spatial Patterns
kernel.squint

Integral of Squared Kernel
compileK

Generic Calculation of K Function and Pair Correlation Function
kernel.factor

Scale factor for density kernel
kernel.moment

Incomplete Moment of Smoothing Kernel
cov.im

Covariance and Correlation between Images
density.psp

Kernel Smoothing of Line Segment Pattern
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
localKcross

Local Multitype K Function (Cross-Type)
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
nnclean

Nearest Neighbour Clutter Removal
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
pcfmulti

Marked pair correlation function
localKinhom

Inhomogeneous Neighbourhood Density Function
localKcross.inhom

Inhomogeneous Multitype K Function
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
plot.bermantest

Plot Result of Berman Test
pool.anylist

Pool Data from a List of Objects
pool.envelope

Pool Data from Several Envelopes
dg.sigtrace

Significance Trace of Dao-Genton Test
methods.ssf

Methods for Spatially Sampled Functions
pcf

Pair Correlation Function
pcf.fasp

Pair Correlation Function obtained from array of K functions
miplot

Morisita Index Plot
relrisk

Estimate of Spatially-Varying Relative Risk
pairs.im

Scatterplot Matrix for Pixel Images
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcfdot

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

Plot Laslett Transform
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
laslett

Laslett's Transform
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
plot.quadrattest

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

Panel Plots using Colour Image or Contour Lines
domain.quadrattest

Extract the Domain of any Spatial Object
localK

Neighbourhood density function
marktable

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

Compute Predictors from Sufficient Dimension Reduction
dimhat

Estimate Dimension of Central Subspace
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
markvario

Mark Variogram
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
segregation.test

Test of Spatial Segregation of Types
pairMean

Mean of a Function of Interpoint Distance
pcfcross

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

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

Distance Between Linear Spaces
pairorient

Point Pair Orientation Distribution
edge.Ripley

Ripley's Isotropic Edge Correction
spatstat.explore-internal

Internal spatstat.explore functions
fv

Create a Function Value Table
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
spatstat.explore-package

The spatstat.explore Package
envelopeArray

Array of Simulation Envelopes of Summary Function
pcfinhom

Inhomogeneous Pair Correlation Function
ssf

Spatially Sampled Function
fv.object

Function Value Table
plot.studpermutest

Plot a Studentised Permutation Test
hopskel

Hopkins-Skellam Test
stieltjes

Compute Integral of Function Against Cumulative Distribution
hotbox

Heat Kernel for a Two-Dimensional Rectangle
eval.fasp

Evaluate Expression Involving Function Arrays
localpcf

Local pair correlation function
pool

Pool Data
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
with.ssf

Evaluate Expression in a Spatially Sampled Function
plot.scan.test

Plot Result of Scan Test
lohboot

Bootstrap Confidence Bands for Summary Function
plot.ssf

Plot a Spatially Sampled Function
pool.fasp

Pool Data from Several Function Arrays
markconnect

Mark Connection Function
quantile.density

Quantiles of a Density Estimate
radcumint

Radial Cumulative Integral
markcrosscorr

Mark Cross-Correlation Function
markcorr

Mark Correlation Function
rotmean

Rotational Average of a Pixel Image
markmarkscatter

Mark-Mark Scatter Plot
scan.test

Spatial Scan Test
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
pcf.fv

Pair Correlation Function obtained from K Function
transect.im

Pixel Values Along a Transect
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
pcf.ppp

Pair Correlation Function of Point Pattern
nnorient

Nearest Neighbour Orientation Distribution
rat

Ratio object
pool.fv

Pool Several Functions
plot.cdftest

Plot a Spatial Distribution Test
rectcontact

Contact Distribution Function using Rectangular Structuring Element
reduced.sample

Reduced Sample Estimator using Histogram Data
reload.or.compute

Compute Unless Previously Saved
plot.envelope

Plot a Simulation Envelope
spatialcdf

Spatial Cumulative Distribution Function
roc

Receiver Operating Characteristic
rose

Rose Diagram
spatstat.explore-deprecated

Deprecated spatstat.explore functions
stienen

Stienen Diagram
studpermu.test

Studentised Permutation Test
plot.fasp

Plot a Function Array
plot.fv

Plot Function Values
pool.quadrattest

Pool Several Quadrat Tests
sharpen

Data Sharpening of Point Pattern
spatcov

Estimate the Spatial Covariance Function of a Random Field
pool.rat

Pool Data from Several Ratio Objects
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
varblock

Estimate Variance of Summary Statistic by Subdivision
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
with.fv

Evaluate an Expression in a Function Table
sdr

Sufficient Dimension Reduction