Learn R Programming

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

spatstat.explore (version 3.2-3)

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

54,262

Version

3.2-3

License

GPL (>= 2)

Maintainer

Last Published

September 7th, 2023

Functions in spatstat.explore (3.2-3)

CDF

Cumulative Distribution Function From Kernel Density Estimate
Fest

Estimate the Empty Space Function or its Hazard Rate
Finhom

Inhomogeneous Empty Space Function
FmultiInhom

Inhomogeneous Marked F-Function
Emark

Diagnostics for random marking
Gcross

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

Inhomogeneous Multitype G Cross Function
GmultiInhom

Inhomogeneous Marked G-Function
G3est

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

Subset of spatially sampled function
Extract.fasp

Extract Subset of Function Array
Gest

Nearest Neighbour Distance Function G
Hest

Spherical Contact Distribution Function
Jdot.inhom

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

Inhomogeneous J-function
Jmulti

Marked J Function
Kinhom

Inhomogeneous K-function
Gfox

Foxall's Distance Functions
Kmark

Mark-Weighted K Function
Jcross.inhom

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

Sector K-function
Jest

Estimate the J-function
Lcross

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

Extract or Replace Subset of Function Values
Kest

K-function
Ginhom

Inhomogeneous Nearest Neighbour Function
Kest.fft

K-function using FFT
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Gdot

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

Multitype J Function (i-to-any)
Gmulti

Marked Nearest Neighbour Distance Function
Lcross.inhom

Inhomogeneous Cross Type L Function
auc

Area Under ROC Curve
Linhom

Inhomogeneous L-function
Math.fasp

S3 Group Generic Methods for Function Arrays
Jmulti.inhom

Inhomogeneous Marked J-Function
berman.test

Berman's Tests for Point Process Model
Kcross

Multitype K Function (Cross-type)
Kcross.inhom

Inhomogeneous Cross K Function
Gdot.inhom

Inhomogeneous Multitype G Dot Function
Ldot

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

Estimate the I-function
Window.quadrattest

Extract Window of Spatial Object
bw.CvLHeat

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
Math.fv

S3 Group Generic Methods for Function Tables
bw.abram

Abramson's Adaptive Bandwidths
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
Jcross

Multitype J Function (i-to-j)
Kmeasure

Reduced Second Moment Measure
PPversion

Transform a Function into its P-P or Q-Q Version
as.data.frame.envelope

Coerce Envelope to Data Frame
as.owin.quadrattest

Convert Data To Class owin
as.tess

Convert Data To Tessellation
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
Kmulti

Marked K-Function
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
compileK

Generic Calculation of K Function and Pair Correlation Function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
bw.abram.ppp

Abramson's Adaptive Bandwidths For Spatial Point Pattern
Tstat

Third order summary statistic
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
cov.im

Covariance and Correlation between Images
collapse.fv

Collapse Several Function Tables into One
allstats

Calculate four standard summary functions of a point pattern.
alltypes

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

L-function
K3est

K-function of a Three-Dimensional Point Pattern
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
Kdot

Multitype K Function (i-to-any)
as.function.fv

Convert Function Value Table to Function
compatible.fasp

Test Whether Function Arrays Are Compatible
Smooth.ppp

Spatial smoothing of observations at irregular points
dg.sigtrace

Significance Trace of Dao-Genton Test
bw.pplHeat

Bandwidth Selection for Diffusion Smoother by Likelihood Cross-Validation
Kdot.inhom

Inhomogeneous Multitype K Dot Function
bits.test

Balanced Independent Two-Stage Monte Carlo Test
Smooth.ssf

Smooth a Spatially Sampled Function
as.function.rhohat

Convert Function Table to Function
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
blur

Apply Gaussian Blur to a Pixel Image
Kmulti.inhom

Inhomogeneous Marked K-Function
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
Kscaled

Locally Scaled K-function
circdensity

Density Estimation for Circular Data
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
density.ppp

Kernel Smoothed Intensity of Point Pattern
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
envelopeArray

Array of Simulation Envelopes of Summary Function
deriv.fv

Calculate Derivative of Function Values
as.fv

Convert Data To Class fv
clarkevans

Clark and Evans Aggregation Index
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
fv.object

Function Value Table
Smooth

Spatial smoothing of data
Smooth.fv

Apply Smoothing to Function Values
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
bw.CvL.adaptive

Select Adaptive Bandwidth for Kernel Estimation Using Cronie-Van Lieshout Criterion
fasp.object

Function Arrays for Spatial Patterns
fvnames

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

Ripley's Isotropic Edge Correction
edge.Trans

Translation Edge Correction
kernel.factor

Scale factor for density kernel
kernel.moment

Moment of Smoothing Kernel
fryplot

Fry Plot of Point Pattern
pairs.im

Scatterplot Matrix for Pixel Images
fv

Create a Function Value Table
panel.contour

Panel Plots using Colour Image or Contour Lines
localKdot

Local Multitype K Function (Dot-Type)
localKinhom

Inhomogeneous Neighbourhood Density Function
bind.fv

Combine Function Value Tables
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
bw.frac

Bandwidth Selection Based on Window Geometry
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
formula.fv

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

Adaptive Kernel Estimate of Intensity of Point Pattern
bw.optim.object

Class of Optimized Bandwidths
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
pcfinhom

Inhomogeneous Pair Correlation Function
plot.cdftest

Plot a Spatial Distribution Test
localKcross

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

Inhomogeneous Multitype K Function
compatible.fv

Test Whether Function Objects Are Compatible
markcrosscorr

Mark Cross-Correlation Function
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
clarkevans.test

Clark and Evans Test
markmarkscatter

Mark-Mark Scatter Plot
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
methods.ssf

Methods for Spatially Sampled Functions
nnclean

Nearest Neighbour Clutter Removal
densityHeat

Diffusion Estimate of Point Pattern Intensity
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
miplot

Morisita Index Plot
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
dclf.progress

Progress Plot of Test of Spatial Pattern
dg.envelope

Global Envelopes for Dao-Genton Test
pcfcross

Multitype pair correlation function (cross-type)
dg.progress

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

Plot a Function Array
pcf.fv

Pair Correlation Function obtained from K Function
plot.envelope

Plot a Simulation Envelope
plot.fv

Plot Function Values
pcf.ppp

Pair Correlation Function of Point Pattern
pool.anylist

Pool Data from a List of Objects
plot.studpermutest

Plot a Studentised Permutation Test
dclf.sigtrace

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

Estimate Dimension of Central Subspace
pool.envelope

Pool Data from Several Envelopes
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
pool

Pool Data
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
roc

Receiver Operating Characteristic
rose

Rose Diagram
clusterset

Allard-Fraley Estimator of Cluster Feature
distcdf

Distribution Function of Interpoint Distance
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
stienen

Stienen Diagram
density.psp

Kernel Smoothing of Line Segment Pattern
spatialcdf

Spatial Cumulative Distribution Function
spatstat.explore-deprecated

Deprecated spatstat.explore functions
studpermu.test

Studentised Permutation Test
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
hotbox

Heat Kernel for a Two-Dimensional Rectangle
envelope

Simulation Envelopes of Summary Function
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
quadrat.test.splitppp

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

Estimate Variance of Summary Statistic by Subdivision
dkernel

Kernel distributions and random generation
rat

Ratio object
envelope.envelope

Recompute Envelopes
domain.quadrattest

Extract the Domain of any Spatial Object
eval.fasp

Evaluate Expression Involving Function Arrays
rectcontact

Contact Distribution Function using Rectangular Structuring Element
idw

Inverse-distance weighted smoothing of observations at irregular points
markconnect

Mark Connection Function
rotmean

Rotational Average of a Pixel Image
markcorr

Mark Correlation Function
harmonise.fv

Make Function Tables Compatible
transect.im

Pixel Values Along a Transect
hopskel

Hopkins-Skellam Test
scan.test

Spatial Scan Test
with.fv

Evaluate an Expression in a Function Table
laslett

Laslett's Transform
localK

Neighbourhood density function
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcfdot

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

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
plot.scan.test

Plot Result of Scan Test
plot.ssf

Plot a Spatially Sampled Function
ssf

Spatially Sampled Function
stieltjes

Compute Integral of Function Against Cumulative Distribution
eval.fv

Evaluate Expression Involving Functions
increment.fv

Increments of a Function
pool.fasp

Pool Data from Several Function Arrays
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
kernel.squint

Integral of Squared Kernel
pool.fv

Pool Several Functions
quantile.density

Quantiles of a Density Estimate
radcumint

Radial Cumulative Integral
markvario

Mark Variogram
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
segregation.test

Test of Spatial Segregation of Types
pairMean

Mean of a Function of Interpoint Distance
pairorient

Point Pair Orientation Distribution
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
plot.laslett

Plot Laslett Transform
plot.quadrattest

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

Pool Several Quadrat Tests
localpcf

Local pair correlation function
pool.rat

Pool Data from Several Ratio Objects
reduced.sample

Reduced Sample Estimator using Histogram Data
reload.or.compute

Compute Unless Previously Saved
lohboot

Bootstrap Confidence Bands for Summary Function
sharpen

Data Sharpening of Point Pattern
spatcov

Estimate the Spatial Covariance Function of a Random Field
nndensity.ppp

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

Internal spatstat.explore functions
nnorient

Nearest Neighbour Orientation Distribution
spatstat.explore-package

The spatstat.explore Package
pcf

Pair Correlation Function
pcf.fasp

Pair Correlation Function obtained from array of K functions
pcfmulti

Marked pair correlation function
plot.bermantest

Plot Result of Berman Test
relrisk

Estimate of Spatially-Varying Relative Risk
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
sdr

Sufficient Dimension Reduction
subspaceDistance

Distance Between Linear Spaces
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
with.ssf

Evaluate Expression in a Spatially Sampled Function