Learn R Programming

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

spatstat.explore (version 3.1-0)

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.1-0

License

GPL (>= 2)

Maintainer

Last Published

March 14th, 2023

Functions in spatstat.explore (3.1-0)

F3est

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

Extract Subset of Function Array
[.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
Extract.fv

Extract or Replace Subset of Function Values
CDF

Cumulative Distribution Function From Kernel Density Estimate
Emark

Diagnostics for random marking
FmultiInhom

Inhomogeneous Marked F-Function
Finhom

Inhomogeneous Empty Space Function
Iest

Estimate the I-function
Hest

Spherical Contact Distribution Function
Gest

Nearest Neighbour Distance Function G
GmultiInhom

Inhomogeneous Marked G-Function
Gfox

Foxall's Distance Functions
Gdot

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

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

Multitype J Function (i-to-j)
Ginhom

Inhomogeneous Nearest Neighbour Function
Gmulti

Marked Nearest Neighbour Distance Function
Jinhom

Inhomogeneous J-function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
K3est

K-function of a Three-Dimensional Point Pattern
Kcross

Multitype K Function (Cross-type)
Jmulti

Marked J Function
Jdot

Multitype J Function (i-to-any)
Jest

Estimate the J-function
Kest

K-function
Kcross.inhom

Inhomogeneous Cross K Function
Kscaled

Locally Scaled K-function
Kmulti

Marked K-Function
Lcross

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

Inhomogeneous Marked K-Function
Kdot

Multitype K Function (i-to-any)
Ksector

Sector K-function
Smooth.fv

Apply Smoothing to Function Values
Lcross.inhom

Inhomogeneous Cross Type L Function
Smooth.ppp

Spatial smoothing of observations at irregular points
Kmark

Mark-Weighted K Function
Lest

L-function
PPversion

Transform a Function into its P-P or Q-Q Version
Kest.fft

K-function using FFT
Kmeasure

Reduced Second Moment Measure
Smooth

Spatial smoothing of data
Kinhom

Inhomogeneous K-function
Tstat

Third order summary statistic
Linhom

Inhomogeneous L-function
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
as.fv

Convert Data To Class fv
Window.quadrattest

Extract Window of Spatial Object
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
as.data.frame.envelope

Coerce Envelope to Data Frame
as.owin.quadrattest

Convert Data To Class owin
allstats

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

Convert Data To Tessellation
auc

Area Under ROC Curve
Ldot

Multitype L-function (i-to-any)
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
blur

Apply Gaussian Blur to a Pixel Image
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Smooth.ssf

Smooth a Spatially Sampled Function
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
bits.test

Balanced Independent Two-Stage Monte Carlo Test
bw.abram

Abramson's Adaptive Bandwidths
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.abram.ppp

Abramson's Adaptive Bandwidths For Spatial Point Pattern
as.function.fv

Convert Function Value Table to Function
as.function.rhohat

Convert Function Table to Function
circdensity

Density Estimation for Circular Data
clarkevans

Clark and Evans Aggregation Index
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
density.ppp

Kernel Smoothed Intensity of Point Pattern
bw.pplHeat

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

Cross Validated Bandwidth Selection for Relative Risk Estimation
density.psp

Kernel Smoothing of Line Segment Pattern
compatible.fv

Test Whether Function Objects Are Compatible
compileK

Generic Calculation of K Function and Pair Correlation Function
berman.test

Berman's Tests for Point Process Model
bind.fv

Combine Function Value Tables
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
cov.im

Covariance and Correlation between Images
dclf.progress

Progress Plot of Test of Spatial Pattern
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
clarkevans.test

Clark and Evans Test
clusterset

Allard-Fraley Estimator of Cluster Feature
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
densityAdaptiveKernel

Adaptive Kernel Estimate of Intensity of Point Pattern
bw.CvL.adaptive

Select Adaptive Bandwidth for Kernel Estimation Using Cronie-Van Lieshout Criterion
bw.frac

Bandwidth Selection Based on Window Geometry
bw.CvLHeat

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
distcdf

Distribution Function of Interpoint Distance
bw.stoyan

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

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

Dao-Genton Adjusted Goodness-Of-Fit Test
dkernel

Kernel distributions and random generation
domain.quadrattest

Extract the Domain of any Spatial Object
edge.Ripley

Ripley's Isotropic Edge Correction
bw.scott

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

Cross Validated Bandwidth Selection for Spatial Smoothing
dimhat

Estimate Dimension of Central Subspace
envelopeArray

Array of Simulation Envelopes of Summary Function
edge.Trans

Translation Edge Correction
eval.fasp

Evaluate Expression Involving Function Arrays
dclf.sigtrace

Significance Trace of Cressie-Loosmore-Ford or Maximum Absolute Deviation Test
dclf.test

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

Simulation Envelopes of Summary Function
eval.fv

Evaluate Expression Involving Functions
fasp.object

Function Arrays for Spatial Patterns
hopskel

Hopkins-Skellam Test
fvnames

Abbreviations for Groups of Columns in Function Value Table
dg.progress

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

Collapse Several Function Tables into One
harmonise.fv

Make Function Tables Compatible
hotbox

Heat Kernel for a Two-Dimensional Rectangle
dg.sigtrace

Significance Trace of Dao-Genton Test
localK

Neighbourhood density function
compatible.fasp

Test Whether Function Arrays Are Compatible
localKcross

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

Inhomogeneous Multitype K Function
envelope.envelope

Recompute Envelopes
idw

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

Increments of a Function
localKinhom

Inhomogeneous Neighbourhood Density Function
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
localpcf

Local pair correlation function
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
densityHeat

Diffusion Estimate of Point Pattern Intensity
laslett

Laslett's Transform
localKdot

Local Multitype K Function (Dot-Type)
kernel.moment

Moment of Smoothing Kernel
fv

Create a Function Value Table
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
kernel.squint

Integral of Squared Kernel
fv.object

Function Value Table
markmarkscatter

Mark-Mark Scatter Plot
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
lohboot

Bootstrap Confidence Bands for Summary Function
kernel.factor

Scale factor for density kernel
markvario

Mark Variogram
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
markconnect

Mark Connection Function
miplot

Morisita Index Plot
pairorient

Point Pair Orientation Distribution
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
deriv.fv

Calculate Derivative of Function Values
pairs.im

Scatterplot Matrix for Pixel Images
dg.envelope

Global Envelopes for Dao-Genton Test
nncorr

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

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
nnorient

Nearest Neighbour Orientation Distribution
pairMean

Mean of a Function of Interpoint Distance
nnclean

Nearest Neighbour Clutter Removal
pcf.ppp

Pair Correlation Function of Point Pattern
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
methods.ssf

Methods for Spatially Sampled Functions
pcfdot

Multitype pair correlation function (i-to-any)
formula.fv

Extract or Change the Plot Formula for a Function Value Table
pcfdot.inhom

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

Fry Plot of Point Pattern
pcf.fasp

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

Plot Function Values
pcf.fv

Pair Correlation Function obtained from K Function
plot.laslett

Plot Laslett Transform
pool.envelope

Pool Data from Several Envelopes
pool.fasp

Pool Data from Several Function Arrays
rat

Ratio object
pcfinhom

Inhomogeneous Pair Correlation Function
pcfmulti

Marked pair correlation function
pcfcross

Multitype pair correlation function (cross-type)
rectcontact

Contact Distribution Function using Rectangular Structuring Element
pool

Pool Data
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
plot.quadrattest

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

Pool Data from Several Ratio Objects
pool.anylist

Pool Data from a List of Objects
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
sdr

Sufficient Dimension Reduction
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
markcorr

Mark Correlation Function
plot.scan.test

Plot Result of Scan Test
quadrat.test.splitppp

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

Mark Cross-Correlation Function
plot.ssf

Plot a Spatially Sampled Function
roc

Receiver Operating Characteristic
panel.contour

Panel Plots using Colour Image or Contour Lines
pcf

Pair Correlation Function
quantile.density

Quantiles of a Density Estimate
rose

Rose Diagram
plot.fasp

Plot a Function Array
plot.envelope

Plot a Simulation Envelope
plot.bermantest

Plot Result of Berman Test
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
radcumint

Radial Cumulative Integral
range.fv

Range of Function Values
plot.studpermutest

Plot a Studentised Permutation Test
reduced.sample

Reduced Sample Estimator using Histogram Data
spatialcdf

Spatial Cumulative Distribution Function
reload.or.compute

Compute Unless Previously Saved
spatstat.explore-deprecated

Deprecated spatstat.explore functions
subspaceDistance

Distance Between Linear Spaces
plot.cdftest

Plot a Spatial Distribution Test
rotmean

Rotational Average of a Pixel Image
scan.test

Spatial Scan Test
pool.fv

Pool Several Functions
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
stienen

Stienen Diagram
pool.quadrattest

Pool Several Quadrat Tests
sharpen

Data Sharpening of Point Pattern
spatcov

Estimate the Spatial Covariance Function of a Random Field
relrisk

Estimate of Spatially-Varying Relative Risk
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
ssf

Spatially Sampled Function
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
studpermu.test

Studentised Permutation Test
spatstat.explore-internal

Internal spatstat.explore functions
segregation.test

Test of Spatial Segregation of Types
stieltjes

Compute Integral of Function Against Cumulative Distribution
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor
with.ssf

Evaluate Expression in a Spatially Sampled Function
spatstat.explore-package

The spatstat.explore Package
transect.im

Pixel Values Along a Transect
varblock

Estimate Variance of Summary Statistic by Subdivision
with.fv

Evaluate an Expression in a Function Table