Learn R Programming

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

spatstat.explore (version 3.2-7)

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,638

Version

3.2-7

License

GPL (>= 2)

Maintainer

Last Published

March 21st, 2024

Functions in spatstat.explore (3.2-7)

[.ssf

Subset of spatially sampled function
Fest

Estimate the Empty Space Function or its Hazard Rate
FmultiInhom

Inhomogeneous Marked F-Function
F3est

Empty Space Function of a Three-Dimensional Point Pattern
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
Extract.fasp

Extract Subset of Function Array
Finhom

Inhomogeneous Empty Space Function
Gdot

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

Inhomogeneous Multitype G Dot Function
Extract.fv

Extract or Replace Subset of Function Values
CDF

Cumulative Distribution Function From Kernel Density Estimate
Emark

Diagnostics for random marking
Gest

Nearest Neighbour Distance Function G
Gcross

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

Inhomogeneous Nearest Neighbour Function
Iest

Estimate the I-function
Gmulti

Marked Nearest Neighbour Distance Function
Lcross.inhom

Inhomogeneous Cross Type L Function
Gcross.inhom

Inhomogeneous Multitype G Cross Function
Gfox

Foxall's Distance Functions
Jcross

Multitype J Function (i-to-j)
GmultiInhom

Inhomogeneous Marked G-Function
Jdot.inhom

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

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

Estimate the J-function
Hest

Spherical Contact Distribution Function
Jcross.inhom

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

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

Inhomogeneous Marked J-Function
K3est

K-function of a Three-Dimensional Point Pattern
Kdot

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

Inhomogeneous Multitype K Dot Function
Kcross

Multitype K Function (Cross-type)
Kcross.inhom

Inhomogeneous Cross K Function
Kinhom

Inhomogeneous K-function
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
Jinhom

Inhomogeneous J-function
Kmark

Mark-Weighted K Function
Ksector

Sector K-function
bits.test

Balanced Independent Two-Stage Monte Carlo Test
Jmulti

Marked J Function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
Kmeasure

Reduced Second Moment Measure
Linhom

Inhomogeneous L-function
Math.fasp

S3 Group Generic Methods for Function Arrays
Lest

L-function
Smooth.ppp

Spatial smoothing of observations at irregular points
Kmulti

Marked K-Function
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
Smooth.ssf

Smooth a Spatially Sampled Function
Kest

K-function
Kest.fft

K-function using FFT
Lcross

Multitype L-function (cross-type)
Kmulti.inhom

Inhomogeneous Marked 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
Kscaled

Locally Scaled K-function
allstats

Calculate four standard summary functions of a point pattern.
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
Math.fv

S3 Group Generic Methods for Function Tables
PPversion

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

Smooth Interpolation of Marks as a Spatial Function
Smooth

Spatial smoothing of data
as.fv

Convert Data To Class fv
SpatialMedian.ppp

Spatially Weighted Median of Values at Points
cdf.test

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

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

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

Kernel Smoothed Intensity of Point Pattern
as.owin.quadrattest

Convert Data To Class owin
as.function.fv

Convert Function Value Table to Function
as.data.frame.envelope

Coerce Envelope to Data Frame
as.function.rhohat

Convert Function Table to Function
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
blur

Apply Gaussian Blur to a Pixel Image
berman.test

Berman's Tests for Point Process Model
edge.Trans

Translation Edge Correction
Smooth.fv

Apply Smoothing to Function Values
boyce

Boyce Index
bw.CvL.adaptive

Select Adaptive Bandwidth for Kernel Estimation Using Cronie-Van Lieshout Criterion
as.tess

Convert Data To Tessellation
Tstat

Third order summary statistic
envelope

Simulation Envelopes of Summary Function
bw.frac

Bandwidth Selection Based on Window Geometry
Window.quadrattest

Extract Window of Spatial Object
bind.fv

Combine Function Value Tables
bw.optim.object

Class of Optimized Bandwidths
auc

Area Under ROC Curve
bw.abram.ppp

Abramson's Adaptive Bandwidths For Spatial Point Pattern
formula.fv

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

Fry Plot of Point Pattern
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
integral.fv

Compute Integral of Function Object
bw.pplHeat

Bandwidth Selection for Diffusion Smoother by Likelihood Cross-Validation
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
collapse.fv

Collapse Several Function Tables into One
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
compatible.fasp

Test Whether Function Arrays Are Compatible
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
clarkevans.test

Clark and Evans Test
compileK

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

Covariance and Correlation between Images
clusterset

Allard-Fraley Estimator of Cluster Feature
bw.CvLHeat

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
dclf.progress

Progress Plot of Test of Spatial Pattern
dclf.sigtrace

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

Adaptive Kernel Estimate of Intensity of Point Pattern
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
dg.sigtrace

Significance Trace of Dao-Genton Test
densityAdaptiveKernel.splitppp

Adaptive Kernel Estimate of Intensity for Split Point Pattern
domain.quadrattest

Extract the Domain of any Spatial Object
bw.abram

Abramson's Adaptive Bandwidths
density.psp

Kernel Smoothing of Line Segment Pattern
circdensity

Density Estimation for Circular Data
clarkevans

Clark and Evans Aggregation Index
nnclean

Nearest Neighbour Clutter Removal
deriv.fv

Calculate Derivative of Function Values
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
dg.envelope

Global Envelopes for Dao-Genton Test
edge.Ripley

Ripley's Isotropic Edge Correction
nnorient

Nearest Neighbour Orientation Distribution
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
distcdf

Distribution Function of Interpoint Distance
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
pcfinhom

Inhomogeneous Pair Correlation Function
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
plot.studpermutest

Plot a Studentised Permutation Test
pool

Pool Data
dimhat

Estimate Dimension of Central Subspace
compatible.fv

Test Whether Function Objects Are Compatible
rat

Ratio object
rectcontact

Contact Distribution Function using Rectangular Structuring Element
dkernel

Kernel distributions and random generation
relrisk

Estimate of Spatially-Varying Relative Risk
compileCDF

Generic Calculation of Cumulative Distribution Function of Distances
kernel.squint

Integral of Squared Kernel
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
envelope.envelope

Recompute Envelopes
fvnames

Abbreviations for Groups of Columns in Function Value Table
densityHeat

Diffusion Estimate of Point Pattern Intensity
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
spatialcdf

Spatial Cumulative Distribution Function
harmonise.fv

Make Function Tables Compatible
spatstat.explore-deprecated

Deprecated spatstat.explore functions
subspaceDistance

Distance Between Linear Spaces
eval.fv

Evaluate Expression Involving Functions
fasp.object

Function Arrays for Spatial Patterns
envelopeArray

Array of Simulation Envelopes of Summary Function
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
laslett

Laslett's Transform
fv

Create a Function Value Table
localKdot

Local Multitype K Function (Dot-Type)
idw

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

Increments of a Function
localKinhom

Inhomogeneous Neighbourhood Density Function
localKcross

Local Multitype K Function (Cross-Type)
eval.fasp

Evaluate Expression Involving Function Arrays
fv.object

Function Value Table
localK

Neighbourhood density function
kernel.factor

Scale factor for density kernel
hopskel

Hopkins-Skellam Test
kernel.moment

Incomplete Moment of Smoothing Kernel
hotbox

Heat Kernel for a Two-Dimensional Rectangle
localKcross.inhom

Inhomogeneous Multitype K Function
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
marktable

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

Mark Variogram
methods.ssf

Methods for Spatially Sampled Functions
miplot

Morisita Index Plot
localpcf

Local pair correlation function
lohboot

Bootstrap Confidence Bands for Summary Function
pairMean

Mean of a Function of Interpoint Distance
markconnect

Mark Connection Function
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
pairorient

Point Pair Orientation Distribution
markcorr

Mark Correlation Function
pcfcross

Multitype pair correlation function (cross-type)
pool.anylist

Pool Data from a List of Objects
pcfmulti

Marked pair correlation function
pool.envelope

Pool Data from Several Envelopes
markcrosscorr

Mark Cross-Correlation Function
pcf

Pair Correlation Function
plot.bermantest

Plot Result of Berman Test
quantile.density

Quantiles of a Density Estimate
pcf.fasp

Pair Correlation Function obtained from array of K functions
plot.fasp

Plot a Function Array
plot.cdftest

Plot a Spatial Distribution Test
plot.fv

Plot Function Values
radcumint

Radial Cumulative Integral
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
varblock

Estimate Variance of Summary Statistic by Subdivision
plot.envelope

Plot a Simulation Envelope
pool.quadrattest

Pool Several Quadrat Tests
pool.rat

Pool Data from Several Ratio Objects
with.fv

Evaluate an Expression in a Function Table
with.ssf

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

Plot Result of Scan Test
rotmean

Rotational Average of a Pixel Image
plot.ssf

Plot a Spatially Sampled Function
pool.fasp

Pool Data from Several Function Arrays
scan.test

Spatial Scan Test
pool.fv

Pool Several Functions
sharpen

Data Sharpening of Point Pattern
pairs.im

Scatterplot Matrix for Pixel Images
markmarkscatter

Mark-Mark Scatter Plot
panel.contour

Panel Plots using Colour Image or Contour Lines
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
spatcov

Estimate the Spatial Covariance Function of a Random Field
stienen

Stienen Diagram
plot.laslett

Plot Laslett Transform
plot.quadrattest

Display the result of a quadrat counting test.
roc

Receiver Operating Characteristic
rose

Rose Diagram
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
studpermu.test

Studentised Permutation Test
segregation.test

Test of Spatial Segregation of Types
ssf

Spatially Sampled Function
pcf.fv

Pair Correlation Function obtained from K Function
sdr

Sufficient Dimension Reduction
pcf.ppp

Pair Correlation Function of Point Pattern
stieltjes

Compute Integral of Function Against Cumulative Distribution
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
transect.im

Pixel Values Along a Transect
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
reduced.sample

Reduced Sample Estimator using Histogram Data
reload.or.compute

Compute Unless Previously Saved
spatstat.explore-internal

Internal spatstat.explore functions
spatstat.explore-package

The spatstat.explore Package