Learn R Programming

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

spatstat.explore (version 3.0-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

54,262

Version

3.0-6

License

GPL (>= 2)

Maintainer

Last Published

January 26th, 2023

Functions in spatstat.explore (3.0-6)

Fest

Estimate the Empty Space Function or its Hazard Rate
Finhom

Inhomogeneous Empty Space Function
Extract.fasp

Extract Subset of Function Array
Extract.fv

Extract or Replace Subset of Function Values
Ginhom

Inhomogeneous Nearest Neighbour Function
GmultiInhom

Inhomogeneous Marked G-Function
[.ssf

Subset of spatially sampled function
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Hest

Spherical Contact Distribution Function
Gmulti

Marked Nearest Neighbour Distance Function
K3est

K-function of a Three-Dimensional Point Pattern
FmultiInhom

Inhomogeneous Marked F-Function
Kcross

Multitype K Function (Cross-type)
Kmark

Mark-Weighted K Function
Jdot

Multitype J Function (i-to-any)
Kmulti

Marked K-Function
Kmeasure

Reduced Second Moment Measure
as.fv

Convert Data To Class fv
Jest

Estimate the J-function
Gcross

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

Inhomogeneous Marked K-Function
as.owin.quadrattest

Convert Data To Class owin
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
Kest.fft

K-function using FFT
Gest

Nearest Neighbour Distance Function G
Lest

L-function
Gdot

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

Inhomogeneous K-function
Jinhom

Inhomogeneous J-function
bits.test

Balanced Independent Two-Stage Monte Carlo Test
Linhom

Inhomogeneous L-function
Gfox

Foxall's Distance Functions
bw.abram

Abramson's Adaptive Bandwidths
Jmulti

Marked J Function
Smooth.fv

Apply Smoothing to Function Values
Lcross

Multitype L-function (cross-type)
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
Lcross.inhom

Inhomogeneous Cross Type L Function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
as.data.frame.envelope

Coerce Envelope to Data Frame
Smooth.ssf

Smooth a Spatially Sampled Function
Smooth.ppp

Spatial smoothing of observations at irregular points
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
as.function.fv

Convert Function Value Table to Function
as.function.rhohat

Convert Function Table to Function
CDF

Cumulative Distribution Function From Kernel Density Estimate
bw.CvL.adaptive

Select Adaptive Bandwidth for Kernel Estimation Using Cronie-Van Lieshout Criterion
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
bw.CvLHeat

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
Kest

K-function
compileK

Generic Calculation of K Function and Pair Correlation Function
blur

Apply Gaussian Blur to a Pixel Image
bw.CvL

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

Diagnostics for random marking
allstats

Calculate four standard summary functions of a point pattern.
clusterset

Allard-Fraley Estimator of Cluster Feature
PPversion

Transform a Function into its P-P or Q-Q Version
Iest

Estimate the I-function
Jcross

Multitype J Function (i-to-j)
cov.im

Covariance and Correlation between Images
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
density.ppp

Kernel Smoothed Intensity of Point Pattern
Kcross.inhom

Inhomogeneous Cross K Function
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
Smooth

Spatial smoothing of data
Kdot

Multitype K Function (i-to-any)
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
collapse.fv

Collapse Several Function Tables into One
bw.scott

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

Diffusion Estimate of Point Pattern Intensity
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
dg.envelope

Global Envelopes for Dao-Genton Test
as.tess

Convert Data To Tessellation
edge.Ripley

Ripley's Isotropic Edge Correction
edge.Trans

Translation Edge Correction
Kscaled

Locally Scaled K-function
bw.pplHeat

Bandwidth Selection for Diffusion Smoother by Likelihood Cross-Validation
Ksector

Sector K-function
Ldot

Multitype L-function (i-to-any)
increment.fv

Increments of a Function
auc

Area Under ROC Curve
clarkevans

Clark and Evans Aggregation Index
Ldot.inhom

Inhomogeneous Multitype L Dot Function
clarkevans.test

Clark and Evans Test
compatible.fasp

Test Whether Function Arrays Are Compatible
Tstat

Third order summary statistic
compatible.fv

Test Whether Function Objects Are Compatible
Window.quadrattest

Extract Window of Spatial Object
berman.test

Berman's Tests for Point Process Model
densityAdaptiveKernel

Adaptive Kernel Estimate of Intensity of Point Pattern
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
dkernel

Kernel distributions and random generation
domain.quadrattest

Extract the Domain of any Spatial Object
densityHeat

Diffusion Estimate of Point Pattern Intensity
fryplot

Fry Plot of Point Pattern
localKdot

Local Multitype K Function (Dot-Type)
dimhat

Estimate Dimension of Central Subspace
bind.fv

Combine Function Value Tables
eval.fasp

Evaluate Expression Involving Function Arrays
bw.frac

Bandwidth Selection Based on Window Geometry
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
distcdf

Distribution Function of Interpoint Distance
eval.fv

Evaluate Expression Involving Functions
envelope.pp3

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

Stoyan's Rule of Thumb for Bandwidth Selection
envelopeArray

Array of Simulation Envelopes of Summary Function
kernel.factor

Scale factor for density kernel
fv.object

Function Value Table
localKinhom

Inhomogeneous Neighbourhood Density Function
kernel.moment

Moment of Smoothing Kernel
fv

Create a Function Value Table
marktable

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

Abbreviations for Groups of Columns in Function Value Table
methods.ssf

Methods for Spatially Sampled Functions
markcrosscorr

Mark Cross-Correlation Function
markvario

Mark Variogram
localKcross

Local Multitype K Function (Cross-Type)
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
localKcross.inhom

Inhomogeneous Multitype K Function
dclf.progress

Progress Plot of Test of Spatial Pattern
dclf.sigtrace

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

Mark Connection Function
miplot

Morisita Index Plot
markcorr

Mark Correlation Function
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
markmarkscatter

Mark-Mark Scatter Plot
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
nnorient

Nearest Neighbour Orientation Distribution
nnclean

Nearest Neighbour Clutter Removal
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
pcf.fv

Pair Correlation Function obtained from K Function
deriv.fv

Calculate Derivative of Function Values
pairMean

Mean of a Function of Interpoint Distance
pcf.ppp

Pair Correlation Function of Point Pattern
pcfcross

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

Pool Data from Several Function Arrays
circdensity

Density Estimation for Circular Data
envelope

Simulation Envelopes of Summary Function
pool.fv

Pool Several Functions
envelope.envelope

Recompute Envelopes
density.psp

Kernel Smoothing of Line Segment Pattern
pairorient

Point Pair Orientation Distribution
hotbox

Heat Kernel for a Two-Dimensional Rectangle
idw

Inverse-distance weighted smoothing of observations at irregular points
laslett

Laslett's Transform
sdr

Sufficient Dimension Reduction
plot.cdftest

Plot a Spatial Distribution Test
localK

Neighbourhood density function
plot.scan.test

Plot Result of Scan Test
plot.ssf

Plot a Spatially Sampled Function
pcfdot

Multitype pair correlation function (i-to-any)
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
plot.envelope

Plot a Simulation Envelope
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
pool.anylist

Pool Data from a List of Objects
pcfmulti

Marked pair correlation function
plot.bermantest

Plot Result of Berman Test
pool.envelope

Pool Data from Several Envelopes
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
reload.or.compute

Compute Unless Previously Saved
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
relrisk

Estimate of Spatially-Varying Relative Risk
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
roc

Receiver Operating Characteristic
spatstat.explore-deprecated

Deprecated spatstat.explore functions
pairs.im

Scatterplot Matrix for Pixel Images
quadrat.test.splitppp

Dispersion Test of CSR for Split Point Pattern Based on Quadrat Counts
dg.sigtrace

Significance Trace of Dao-Genton Test
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
quantile.density

Quantiles of a Density Estimate
spatstat.explore-internal

Internal spatstat.explore functions
radcumint

Radial Cumulative Integral
rose

Rose Diagram
spatcov

Estimate the Spatial Covariance Function of a Random Field
panel.contour

Panel Plots using Colour Image or Contour Lines
spatialcdf

Spatial Cumulative Distribution Function
rotmean

Rotational Average of a Pixel Image
stieltjes

Compute Integral of Function Against Cumulative Distribution
stienen

Stienen Diagram
transect.im

Pixel Values Along a Transect
fasp.object

Function Arrays for Spatial Patterns
formula.fv

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

Confidence Interval for Threshold of Numerical Predictor
thresholdSelect

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

Make Function Tables Compatible
pcfdot.inhom

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

Estimate Variance of Summary Statistic by Subdivision
scan.test

Spatial Scan Test
pcfinhom

Inhomogeneous Pair Correlation Function
plot.fasp

Plot a Function Array
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
hopskel

Hopkins-Skellam Test
kernel.squint

Integral of Squared Kernel
plot.fv

Plot Function Values
pool.quadrattest

Pool Several Quadrat Tests
pool.rat

Pool Data from Several Ratio Objects
rectcontact

Contact Distribution Function using Rectangular Structuring Element
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
localpcf

Local pair correlation function
reduced.sample

Reduced Sample Estimator using Histogram Data
studpermu.test

Studentised Permutation Test
lohboot

Bootstrap Confidence Bands for Summary Function
subspaceDistance

Distance Between Linear Spaces
pcf

Pair Correlation Function
pcf.fasp

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

Plot Laslett Transform
with.ssf

Evaluate Expression in a Spatially Sampled Function
sharpen

Data Sharpening of Point Pattern
pool

Pool Data
segregation.test

Test of Spatial Segregation of Types
spatstat.explore-package

The spatstat.explore Package
plot.studpermutest

Plot a Studentised Permutation Test
plot.quadrattest

Display the result of a quadrat counting test.
ssf

Spatially Sampled Function
range.fv

Range of Function Values
rat

Ratio object
with.fv

Evaluate an Expression in a Function Table