Learn R Programming

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

spatstat.explore (version 3.2-1)

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

84,643

Version

3.2-1

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

May 13th, 2023

Functions in spatstat.explore (3.2-1)

[.ssf

Subset of spatially sampled function
Extract.fasp

Extract Subset of Function Array
FmultiInhom

Inhomogeneous Marked F-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
Finhom

Inhomogeneous Empty Space Function
F3est

Empty Space Function of a Three-Dimensional Point Pattern
CDF

Cumulative Distribution Function From Kernel Density Estimate
Emark

Diagnostics for random marking
Gest

Nearest Neighbour Distance Function G
Gdot

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

Foxall's Distance Functions
Gdot.inhom

Inhomogeneous Multitype G Dot Function
Gcross

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

Inhomogeneous Marked G-Function
Gcross.inhom

Inhomogeneous Multitype G Cross Function
Hest

Spherical Contact Distribution Function
Jinhom

Inhomogeneous J-function
Jcross.inhom

Inhomogeneous Multitype J function (i-to-j)
Jmulti.inhom

Inhomogeneous Marked J-Function
Ginhom

Inhomogeneous Nearest Neighbour Function
Gmulti

Marked Nearest Neighbour Distance Function
Jdot

Multitype J Function (i-to-any)
Jmulti

Marked J Function
Jdot.inhom

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

Estimate the I-function
Jest

Estimate the J-function
K3est

K-function of a Three-Dimensional Point Pattern
Jcross

Multitype J Function (i-to-j)
Kinhom

Inhomogeneous K-function
Kmark

Mark-Weighted K Function
Kmeasure

Reduced Second Moment Measure
Kdot

Multitype K Function (i-to-any)
Kcross

Multitype K Function (Cross-type)
Kmulti

Marked K-Function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Kest

K-function
Lcross.inhom

Inhomogeneous Cross Type L Function
Linhom

Inhomogeneous L-function
Math.fasp

S3 Group Generic Methods for Function Arrays
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Ldot

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

Spatial smoothing of data
Math.fv

S3 Group Generic Methods for Function Tables
Lest

L-function
Kcross.inhom

Inhomogeneous Cross K Function
Smooth.fv

Apply Smoothing to Function Values
allstats

Calculate four standard summary functions of a point pattern.
alltypes

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

Spatial smoothing of observations at irregular points
Smooth.ssf

Smooth a Spatially Sampled Function
Ksector

Sector K-function
bw.CvL

Cronie and van Lieshout's Criterion for Bandwidth Selection for Kernel Density
Kest.fft

K-function using FFT
as.owin.quadrattest

Convert Data To Class owin
Lcross

Multitype L-function (cross-type)
as.tess

Convert Data To Tessellation
PPversion

Transform a Function into its P-P or Q-Q Version
Window.quadrattest

Extract Window of Spatial Object
auc

Area Under ROC Curve
Kmulti.inhom

Inhomogeneous Marked K-Function
bw.frac

Bandwidth Selection Based on Window Geometry
bw.optim.object

Class of Optimized Bandwidths
bw.CvL.adaptive

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

Bandwidth Selection for Diffusion Smoother by Cronie-van Lieshout Rule
berman.test

Berman's Tests for Point Process Model
bw.abram

Abramson's Adaptive Bandwidths
adaptive.density

Adaptive Estimate of Intensity of Point Pattern
Kscaled

Locally Scaled K-function
compatible.fv

Test Whether Function Objects Are Compatible
compileK

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

Clark and Evans Test
clusterset

Allard-Fraley Estimator of Cluster Feature
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
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
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
bw.scott

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

Kernel Smoothed Intensity of Point Pattern
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
bw.stoyan

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

Spatial Distribution Test for Point Pattern or Point Process Model
density.psp

Kernel Smoothing of Line Segment Pattern
dclf.sigtrace

Significance Trace of Cressie-Loosmore-Ford or Maximum Absolute Deviation Test
cov.im

Covariance and Correlation between Images
deriv.fv

Calculate Derivative of Function Values
as.function.rhohat

Convert Function Table to Function
domain.quadrattest

Extract the Domain of any Spatial Object
edge.Ripley

Ripley's Isotropic Edge Correction
eval.fv

Evaluate Expression Involving Functions
dclf.progress

Progress Plot of Test of Spatial Pattern
Tstat

Third order summary statistic
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
bind.fv

Combine Function Value Tables
fasp.object

Function Arrays for Spatial Patterns
dg.envelope

Global Envelopes for Dao-Genton Test
hopskel

Hopkins-Skellam Test
bits.envelope

Global Envelopes for Balanced Independent Two-Stage Test
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
hotbox

Heat Kernel for a Two-Dimensional Rectangle
envelopeArray

Array of Simulation Envelopes of Summary Function
as.fv

Convert Data To Class fv
densityAdaptiveKernel

Adaptive Kernel Estimate of Intensity of Point Pattern
bw.pcf

Cross Validated Bandwidth Selection for Pair Correlation Function
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
eval.fasp

Evaluate Expression Involving Function Arrays
idw

Inverse-distance weighted smoothing of observations at irregular points
markcorr

Mark Correlation Function
fv

Create a Function Value Table
fv.object

Function Value Table
kernel.moment

Moment of Smoothing Kernel
bits.test

Balanced Independent Two-Stage Monte Carlo Test
dg.test

Dao-Genton Adjusted Goodness-Of-Fit Test
markcrosscorr

Mark Cross-Correlation Function
panel.contour

Panel Plots using Colour Image or Contour Lines
kernel.squint

Integral of Squared Kernel
increment.fv

Increments of a Function
dimhat

Estimate Dimension of Central Subspace
localK

Neighbourhood density function
edge.Trans

Translation Edge Correction
pcf

Pair Correlation Function
plot.bermantest

Plot Result of Berman Test
localKcross

Local Multitype K Function (Cross-Type)
markvario

Mark Variogram
blur

Apply Gaussian Blur to a Pixel Image
envelope

Simulation Envelopes of Summary Function
bw.pplHeat

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

Kaplan-Meier Estimator using Histogram Data
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
kernel.factor

Scale factor for density kernel
lohboot

Bootstrap Confidence Bands for Summary Function
circdensity

Density Estimation for Circular Data
plot.cdftest

Plot a Spatial Distribution Test
markconnect

Mark Connection Function
miplot

Morisita Index Plot
localKcross.inhom

Inhomogeneous Multitype K Function
collapse.fv

Collapse Several Function Tables into One
pool.rat

Pool Data from Several Ratio Objects
nnclean

Nearest Neighbour Clutter Removal
pcfdot

Multitype pair correlation function (i-to-any)
compatible.fasp

Test Whether Function Arrays Are Compatible
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
pcfinhom

Inhomogeneous Pair Correlation Function
densityHeat

Diffusion Estimate of Point Pattern Intensity
pcfmulti

Marked pair correlation function
localKdot

Local Multitype K Function (Dot-Type)
densityHeat.ppp

Diffusion Estimate of Point Pattern Intensity
plot.quadrattest

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

Plot a Simulation Envelope
clarkevans

Clark and Evans Aggregation Index
distcdf

Distribution Function of Interpoint Distance
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
densityVoronoi

Intensity Estimate of Point Pattern Using Voronoi-Dirichlet Tessellation
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
methods.ssf

Methods for Spatially Sampled Functions
plot.scan.test

Plot Result of Scan Test
densityfun.ppp

Kernel Estimate of Intensity as a Spatial Function
radcumint

Radial Cumulative Integral
pool.fv

Pool Several Functions
pool.quadrattest

Pool Several Quadrat Tests
dg.progress

Progress Plot of Dao-Genton Test of Spatial Pattern
relrisk.ppp

Nonparametric Estimate of Spatially-Varying Relative Risk
dg.sigtrace

Significance Trace of Dao-Genton Test
plot.fasp

Plot a Function Array
envelope.envelope

Recompute Envelopes
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
transect.im

Pixel Values Along a Transect
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
rat

Ratio object
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
quadrat.test.splitppp

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

Estimate Variance of Summary Statistic by Subdivision
localKinhom

Inhomogeneous Neighbourhood Density Function
dkernel

Kernel distributions and random generation
scan.test

Spatial Scan Test
formula.fv

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

Multitype pair correlation function (cross-type)
quantile.density

Quantiles of a Density Estimate
fryplot

Fry Plot of Point Pattern
localpcf

Local pair correlation function
markmarkscatter

Mark-Mark Scatter Plot
rectcontact

Contact Distribution Function using Rectangular Structuring Element
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
plot.fv

Plot Function Values
fvnames

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

Make Function Tables Compatible
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
spatstat.explore-package

The spatstat.explore Package
pairorient

Point Pair Orientation Distribution
ssf

Spatially Sampled Function
pairs.im

Scatterplot Matrix for Pixel Images
plot.laslett

Plot Laslett Transform
pool

Pool Data
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
pool.anylist

Pool Data from a List of Objects
laslett

Laslett's Transform
nnorient

Nearest Neighbour Orientation Distribution
reduced.sample

Reduced Sample Estimator using Histogram Data
pcf.ppp

Pair Correlation Function of Point Pattern
pairMean

Mean of a Function of Interpoint Distance
sdr

Sufficient Dimension Reduction
pcf.fasp

Pair Correlation Function obtained from array of K functions
spatcov

Estimate the Spatial Covariance Function of a Random Field
pcf.fv

Pair Correlation Function obtained from K Function
pcf3est

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

Pool Data from Several Envelopes
spatialcdf

Spatial Cumulative Distribution Function
spatstat.explore-deprecated

Deprecated spatstat.explore functions
sdrPredict

Compute Predictors from Sufficient Dimension Reduction
pool.fasp

Pool Data from Several Function Arrays
plot.ssf

Plot a Spatially Sampled Function
spatstat.explore-internal

Internal spatstat.explore functions
with.fv

Evaluate an Expression in a Function Table
plot.studpermutest

Plot a Studentised Permutation Test
with.ssf

Evaluate Expression in a Spatially Sampled Function
rhohat

Nonparametric Estimate of Intensity as Function of a Covariate
roc

Receiver Operating Characteristic
segregation.test

Test of Spatial Segregation of Types
studpermu.test

Studentised Permutation Test
subspaceDistance

Distance Between Linear Spaces
sharpen

Data Sharpening of Point Pattern
reload.or.compute

Compute Unless Previously Saved
relrisk

Estimate of Spatially-Varying Relative Risk
rose

Rose Diagram
stieltjes

Compute Integral of Function Against Cumulative Distribution
rotmean

Rotational Average of a Pixel Image
stienen

Stienen Diagram
thresholdCI

Confidence Interval for Threshold of Numerical Predictor
thresholdSelect

Select Threshold to Convert Numerical Predictor to Binary Predictor