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

spatstat.explore (version 3.2-5)

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

52,902

Version

3.2-5

License

GPL (>= 2)

Maintainer

Last Published

October 22nd, 2023

Functions in spatstat.explore (3.2-5)

Extract.fasp

Extract Subset of Function Array
FmultiInhom

Inhomogeneous Marked F-Function
Emark

Diagnostics for random marking
CDF

Cumulative Distribution Function From Kernel Density Estimate
Extract.fv

Extract or Replace Subset of Function Values
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
[.ssf

Subset of spatially sampled function
Fest

Estimate the Empty Space Function or its Hazard Rate
Finhom

Inhomogeneous Empty Space Function
F3est

Empty Space Function of a Three-Dimensional Point Pattern
GmultiInhom

Inhomogeneous Marked G-Function
Gdot

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

Inhomogeneous Multitype G Dot Function
Hest

Spherical Contact Distribution Function
Gest

Nearest Neighbour Distance Function G
Ginhom

Inhomogeneous Nearest Neighbour Function
Gmulti

Marked Nearest Neighbour Distance Function
Gcross

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

Inhomogeneous Marked J-Function
Gfox

Foxall's Distance Functions
Gcross.inhom

Inhomogeneous Multitype G Cross Function
Jcross.inhom

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

Estimate the I-function
Jinhom

Inhomogeneous J-function
Jdot

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

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

Marked J Function
K3est

K-function of a Three-Dimensional Point Pattern
Jcross

Multitype J Function (i-to-j)
Kinhom

Inhomogeneous K-function
Kdot

Multitype K Function (i-to-any)
Jest

Estimate the J-function
Kmark

Mark-Weighted K Function
Kcross

Multitype K Function (Cross-type)
Kest

K-function
Kmulti.inhom

Inhomogeneous Marked K-Function
Kscaled

Locally Scaled K-function
Linhom

Inhomogeneous L-function
Kcross.inhom

Inhomogeneous Cross K Function
Math.fasp

S3 Group Generic Methods for Function Arrays
Kmeasure

Reduced Second Moment Measure
Smooth.ppp

Spatial smoothing of observations at irregular points
Kest.fft

K-function using FFT
Kmulti

Marked K-Function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Lcross.inhom

Inhomogeneous Cross Type L Function
Smooth.ssf

Smooth a Spatially Sampled Function
Window.quadrattest

Extract Window of Spatial Object
auc

Area Under ROC Curve
Ldot

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

L-function
Ksector

Sector K-function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
berman.test

Berman's Tests for Point Process Model
Lcross

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

S3 Group Generic Methods for Function Tables
allstats

Calculate four standard summary functions of a point pattern.
PPversion

Transform a Function into its P-P or Q-Q Version
bw.CvLHeat

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
as.function.rhohat

Convert Function Table to Function
as.owin.quadrattest

Convert Data To Class owin
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
bw.abram

Abramson's Adaptive Bandwidths
Smooth

Spatial smoothing of data
as.tess

Convert Data To Tessellation
as.fv

Convert Data To Class fv
Tstat

Third order summary statistic
compatible.fv

Test Whether Function Objects Are Compatible
Smooth.fv

Apply Smoothing to Function Values
bind.fv

Combine Function Value Tables
alltypes

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

Generic Calculation of Cumulative Distribution Function of Distances
as.data.frame.envelope

Coerce Envelope to Data Frame
as.function.fv

Convert Function Value Table to Function
bw.abram.ppp

Abramson's Adaptive Bandwidths For Spatial Point Pattern
bits.test

Balanced Independent Two-Stage Monte Carlo Test
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
blur

Apply Gaussian Blur to a Pixel Image
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
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.frac

Bandwidth Selection Based on Window Geometry
collapse.fv

Collapse Several Function Tables into One
bw.scott

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

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

Cross Validated Bandwidth Selection for Spatial Smoothing
bw.optim.object

Class of Optimized Bandwidths
circdensity

Density Estimation for Circular Data
compatible.fasp

Test Whether Function Arrays Are Compatible
density.psp

Kernel Smoothing of Line Segment Pattern
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
bw.pplHeat

Bandwidth Selection for Diffusion Smoother by Likelihood Cross-Validation
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
density.ppp

Kernel Smoothed Intensity of Point Pattern
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
clarkevans.test

Clark and Evans Test
compileK

Generic Calculation of K Function and Pair Correlation Function
clarkevans

Clark and Evans Aggregation Index
dimhat

Estimate Dimension of Central Subspace
dg.envelope

Global Envelopes for Dao-Genton Test
distcdf

Distribution Function of Interpoint Distance
densityAdaptiveKernel

Adaptive Kernel Estimate of Intensity of Point Pattern
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
clusterset

Allard-Fraley Estimator of Cluster Feature
densityHeat

Diffusion Estimate of Point Pattern Intensity
cov.im

Covariance and Correlation between Images
edge.Ripley

Ripley's Isotropic Edge Correction
fasp.object

Function Arrays for Spatial Patterns
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
formula.fv

Extract or Change the Plot Formula for a Function Value Table
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
eval.fasp

Evaluate Expression Involving Function Arrays
eval.fv

Evaluate Expression Involving Functions
localK

Neighbourhood density function
edge.Trans

Translation Edge Correction
localKcross

Local Multitype K Function (Cross-Type)
pairorient

Point Pair Orientation Distribution
fv.object

Function Value Table
deriv.fv

Calculate Derivative of Function Values
fvnames

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

Increments of a Function
kernel.moment

Incomplete Moment of Smoothing Kernel
pairs.im

Scatterplot Matrix for Pixel Images
plot.bermantest

Plot Result of Berman Test
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
integral.fv

Compute Integral of Function Object
dclf.progress

Progress Plot of Test of Spatial Pattern
kernel.squint

Integral of Squared Kernel
dg.sigtrace

Significance Trace of Dao-Genton Test
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
dg.test

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

Plot a Spatial Distribution Test
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
markmarkscatter

Mark-Mark Scatter Plot
laslett

Laslett's Transform
localKinhom

Inhomogeneous Neighbourhood Density Function
pool.fv

Pool Several Functions
pool.quadrattest

Pool Several Quadrat Tests
marktable

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

Local pair correlation function
envelopeArray

Array of Simulation Envelopes of Summary Function
miplot

Morisita Index Plot
dclf.sigtrace

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

Nearest Neighbour Clutter Removal
pcf.fasp

Pair Correlation Function obtained from array of K functions
pcfcross

Multitype pair correlation function (cross-type)
harmonise.fv

Make Function Tables Compatible
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
hopskel

Hopkins-Skellam Test
fryplot

Fry Plot of Point Pattern
pcf.fv

Pair Correlation Function obtained from K Function
pool.envelope

Pool Data from Several Envelopes
pool.fasp

Pool Data from Several Function Arrays
dkernel

Kernel distributions and random generation
plot.fv

Plot Function Values
domain.quadrattest

Extract the Domain of any Spatial Object
quadrat.test.splitppp

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

Contact Distribution Function using Rectangular Structuring Element
envelope

Simulation Envelopes of Summary Function
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
quantile.density

Quantiles of a Density Estimate
kernel.factor

Scale factor for density kernel
lohboot

Bootstrap Confidence Bands for Summary Function
plot.laslett

Plot Laslett Transform
pool.rat

Pool Data from Several Ratio Objects
envelope.envelope

Recompute Envelopes
reduced.sample

Reduced Sample Estimator using Histogram Data
hotbox

Heat Kernel for a Two-Dimensional Rectangle
markconnect

Mark Connection Function
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
scan.test

Spatial Scan Test
quadrat.test

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

Compute Unless Previously Saved
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
relrisk

Estimate of Spatially-Varying Relative Risk
idw

Inverse-distance weighted smoothing of observations at irregular points
rose

Rose Diagram
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
rotmean

Rotational Average of a Pixel Image
spatstat.explore-deprecated

Deprecated spatstat.explore functions
spatstat.explore-internal

Internal spatstat.explore functions
fv

Create a Function Value Table
roc

Receiver Operating Characteristic
spatcov

Estimate the Spatial Covariance Function of a Random Field
localKcross.inhom

Inhomogeneous Multitype K Function
markcorr

Mark Correlation Function
panel.contour

Panel Plots using Colour Image or Contour Lines
localKdot

Local Multitype K Function (Dot-Type)
pcf

Pair Correlation Function
transect.im

Pixel Values Along a Transect
varblock

Estimate Variance of Summary Statistic by Subdivision
markvario

Mark Variogram
markcrosscorr

Mark Cross-Correlation Function
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
spatialcdf

Spatial Cumulative Distribution Function
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
methods.ssf

Methods for Spatially Sampled Functions
pcf.ppp

Pair Correlation Function of Point Pattern
nnorient

Nearest Neighbour Orientation Distribution
pcf3est

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

Plot a Simulation Envelope
spatstat.explore-package

The spatstat.explore Package
pairMean

Mean of a Function of Interpoint Distance
pcfdot

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

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

Plot a Function Array
pool

Pool Data
ssf

Spatially Sampled Function
pool.anylist

Pool Data from a List of Objects
sdr

Sufficient Dimension Reduction
plot.scan.test

Plot Result of Scan Test
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
radcumint

Radial Cumulative Integral
pcfdot.inhom

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

Inhomogeneous Pair Correlation Function
pcfmulti

Marked pair correlation function
studpermu.test

Studentised Permutation Test
subspaceDistance

Distance Between Linear Spaces
rat

Ratio object
plot.ssf

Plot a Spatially Sampled Function
plot.studpermutest

Plot a Studentised Permutation Test
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
segregation.test

Test of Spatial Segregation of Types
sharpen

Data Sharpening of Point Pattern
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
stieltjes

Compute Integral of Function Against Cumulative Distribution
stienen

Stienen Diagram
with.fv

Evaluate an Expression in a Function Table
with.ssf

Evaluate Expression in a Spatially Sampled Function