Learn R Programming

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

spatstat (version 1.31-0)

Spatial Point Pattern analysis, model-fitting, simulation, tests

Description

A package for analysing spatial data, mainly Spatial Point Patterns, including multitype/marked points and spatial covariates, in any two-dimensional spatial region. Also supports three-dimensional point patterns, and space-time point patterns in any number of dimensions. Contains over 1000 functions for plotting spatial data, exploratory data analysis, model-fitting, simulation, spatial sampling, model diagnostics, and formal inference. Data types include point patterns, line segment patterns, spatial windows, pixel images and tessellations. Exploratory methods include K-functions, 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 etc. Point process models can be fitted to point pattern data using functions ppm, kppm, slrm similar to glm. Models may include dependence on covariates, interpoint interaction, cluster formation and dependence on marks. Fitted models can be simulated automatically. Also provides facilities for formal inference (such as chi-squared tests) and model diagnostics (including simulation envelopes, residuals, residual plots and Q-Q plots).

Copy Link

Version

Install

install.packages('spatstat')

Monthly Downloads

18,534

Version

1.31-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

January 17th, 2013

Functions in spatstat (1.31-0)

Kest

K-function
Extract.lpp

Extract Subset of Point Pattern on Linear Network
Hybrid

Hybrid Interaction Point Process Model
Extract.msr

Extract Subset of Signed or Vector Measure
Extract.splitppp

Extract or Replace Sub-Patterns
Iest

Estimate the I-function
Kmulti

Marked K-Function
Geyer

Geyer's Saturation Point Process Model
as.mask

Pixel Image Approximation of a Window
Kcross

Multitype K Function (Cross-type)
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
areaLoss

Difference of Disc Areas
corners

Corners of a rectangle
envelope.lpp

Envelope for Point Patterns on Linear Network
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
default.dummy

Generate a Default Pattern of Dummy Points
Kmodel

K function of a model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
im

Create a Pixel Image Object
funxy

Spatial Function Class
Lcross.inhom

Inhomogeneous Cross Type L Function
Lcross

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

Inhomogeneous Multitype L Dot Function
OrdThresh

Ord's Interaction model
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
bounding.box.xy

Convex Hull of Points
is.im

Test Whether An Object Is A Pixel Image
gordon

People in Gordon Square
gridcentres

Rectangular grid of points
convexhull

Convex Hull
discpartarea

Area of Part of Disc
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
mincontrast

Method of Minimum Contrast
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
erosion

Morphological Erosion
dclf.test

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

Hughes' Amacrine Cell Data
contour.im

Contour plot of pixel image
pp3

Three Dimensional Point Pattern
pairdist

Pairwise distances
dfbetas.ppm

Parameter influence measure
diameter.box3

Geometrical Calculations for Three-Dimensional Box
is.marked.ppp

Test Whether A Point Pattern is Marked
Extract.quad

Subset of Quadrature Scheme
affine.owin

Apply Affine Transformation To Window
pppmatching.object

Class of Point Matchings
plot.ppp

plot a Spatial Point Pattern
is.rectangle

Determine Type of Window
formula.fv

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

Interactively join vertices on a plot
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
is.multitype.ppm

Test Whether A Point Process Model is Multitype
crossing.psp

Crossing Points of Two Line Segment Patterns
project2segment

Move Point To Nearest Line
owin.object

Class owin
print.ppm

Print a Fitted Point Process Model
model.depends

Identify Covariates Involved in each Model Term
rlinegrid

Generate grid of parallel lines with random displacement
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
DiggleGratton

Diggle-Gratton model
lgcp.estpcf

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
markvario

Mark Variogram
quadscheme

Generate a Quadrature Scheme from a Point Pattern
perimeter

Perimeter Length of Window
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
print.owin

Print Brief Details of a Spatial Window
rgbim

Create Colour-Valued Pixel Image
convexhull.xy

Convex Hull of Points
murchison

Murchison gold deposits
is.convex

Test Whether a Window is Convex
with.fv

Evaluate an Expression in a Function Table
rmhexpand

Specify Simulation Window or Expansion Rule
as.ppm

Extract Fitted Point Process Model
Lest

L-function
pcfinhom

Inhomogeneous Pair Correlation Function
as.box3

Convert Data to Three-Dimensional Box
rmh.ppm

Simulate from a Fitted Point Process Model
ppp

Create a Point Pattern
contour.listof

Plot a List of Things
plot.leverage.ppm

Plot Leverage Function
plot.hyperframe

Plot Entries in a Hyperframe
plot.fasp

Plot a Function Array
summary.psp

Summary of a Line Segment Pattern Dataset
rshift

Random Shift
union.quad

Union of Data and Dummy Points
paracou

Kimboto trees at Paracou, French Guiana
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
rotate.ppp

Rotate a Point Pattern
Triplets

The Triplet Point Process Model
affine.ppp

Apply Affine Transformation To Point Pattern
methods.funxy

Methods for Spatial Functions
plot.ppm

plot a Fitted Point Process Model
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
influence.ppm

Influence Measure for Spatial Point Process Model
valid.ppm

Check Whether Point Process Model is Valid
runiflpp

Uniform Random Points on a Linear Network
vcov.slrm

Variance-Covariance Matrix for a Fitted Spatial Logistic Regression
eroded.areas

Areas of Morphological Erosions
Gcom

Model Compensator of Nearest Neighbour Function
Kres

Residual K Function
default.expand

Default Expansion Rule for Simulation of Model
rpoispp

Generate Poisson Point Pattern
compatible.fv

Test Whether Function Objects Are Compatible
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
Strauss

The Strauss Point Process Model
swedishpines

Swedish Pines Point Pattern
rescale.owin

Convert Window to Another Unit of Length
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
as.owin

Convert Data To Class owin
summary.owin

Summary of a Spatial Window
levelset

Level Set of a Pixel Image
shift.owin

Apply Vector Translation To Window
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
spatstat-deprecated

Deprecated spatstat functions
as.im

Convert to Pixel Image
pool.fasp

Pool Data from Several Function Arrays
model.images

Compute Images of Constructed Covariates
Ord

Generic Ord Interaction model
LennardJones

The Lennard-Jones Potential
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
plot.linim

Plot Pixel Image on Linear Network
Kest.fft

K-function using FFT
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
marktable

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

Simulation Envelopes of Summary Function
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
Finhom

Inhomogeneous Empty Space Function
Kcross.inhom

Inhomogeneous Cross K Function
rshift.ppp

Randomly Shift a Point Pattern
update.kppm

Update a Fitted Cluster Point Process Model
rescale.ppp

Convert Point Pattern to Another Unit of Length
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
eval.im

Evaluate Expression Involving Pixel Images
as.psp

Convert Data To Class psp
dilation

Morphological Dilation
bramblecanes

Hutchings' Bramble Canes data
affine

Apply Affine Transformation
K3est

K-function of a Three-Dimensional Point Pattern
anemones

Beadlet Anemones Data
allstats

Calculate four standard summary functions of a point pattern.
inforder.family

Infinite Order Interaction Family
split.ppp

Divide Point Pattern into Sub-patterns
rotate.owin

Rotate a Window
hyytiala

Scots pines and other trees at Hyytiala
spatstat-internal

Internal spatstat functions
angles.psp

Orientation Angles of Line Segments
unmark

Remove Marks
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
circumradius

Circumradius and Diameter of a Linear Network
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
Kscaled

Locally Scaled K-function
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
hyperframe

Hyper Data Frame
eem

Exponential Energy Marks
hybrid.family

Hybrid Interaction Family
crossdist.ppp

Pairwise distances between two different point patterns
mean.im

Maximum, Minimum, Mean, Median, Range or Sum of Pixel Values in an Image
Fiksel

The Fiksel Interaction
append.psp

Combine Two Line Segment Patterns
collapse.fv

Collapse Several Function Tables into One
bdist.points

Distance to Boundary of Window
logLik.ppm

Log Likelihood and AIC for Point Process Model
parres

Partial Residuals for Point Process Model
F3est

Empty Space Function of a Three-Dimensional Point Pattern
fryplot

Fry Plot of Point Pattern
boxx

Multi-Dimensional Box
colourmap

Colour Lookup Tables
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
letterR

Window in Shape of Letter R
flu

Influenza Virus Proteins
pcf.fv

Pair Correlation Function obtained from K Function
bw.frac

Bandwidth Selection Based on Window Geometry
distcdf

Distribution Function of Interpoint Distance
methods.kppm

Methods for Cluster Point Process Models
matchingdist

Distance for a Point Pattern Matching
area.owin

Area of a Window
pairdist.psp

Pairwise distances between line segments
bermantest

Berman's Tests for Point Process Model
methods.units

Methods for Units
methods.lpp

Methods for Point Patterns on a Linear Network
nnwhich

Nearest neighbour
scanpp

Read Point Pattern From Data File
methods.slrm

Methods for Spatial Logistic Regression Models
nndist.psp

Nearest neighbour distances between line segments
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
plot.quad

plot a Spatial Quadrature Scheme
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
Kmulti.inhom

Inhomogeneous Marked K-Function
residuals.ppm

Residuals for Fitted Point Process Model
pairwise.family

Pairwise Interaction Process Family
StraussHard

The Strauss / Hard Core Point Process Model
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
compatible.im

Test Whether Pixel Images Are Compatible
pairdist.ppp

Pairwise distances
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
MultiStrauss

The Multitype Strauss Point Process Model
owin

Create a Window
plot.layered

Layered Plot
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
by.im

Apply Function to Image Broken Down by Factor
areaGain

Difference of Disc Areas
Saturated

Saturated Pairwise Interaction model
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
clickppp

Interactively Add Points
predict.lppm

Predict Point Process Model on Linear Network
as.interact

Extract Interaction Structure
pixellate

Convert Spatial Object to Pixel Image
pairdist.lpp

Pairwise shortest-path distances between points on a linear network
rMosaicSet

Mosaic Random Set
ppx

Multidimensional Space-Time Point Pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
reflect

Reflect In Origin
dilated.areas

Areas of Morphological Dilations
ponderosa

Ponderosa Pine Tree Point Pattern
ripras

Estimate window from points alone
print.ppp

Print Brief Details of a Point Pattern Dataset
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
urkiola

Urkiola Woods Point Pattern
discretise

Safely Convert Point Pattern Window to Binary Mask
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
slrm

Spatial Logistic Regression
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
dirichlet

Dirichlet Tessellation of Point Pattern
clarkevans

Clark and Evans Aggregation Index
pcf.ppp

Pair Correlation Function of Point Pattern
pairs.im

Scatterplot Matrix for Pixel Images
Ldot

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

Marked Nearest Neighbour Distance Function
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
crossdist.psp

Pairwise distances between two different line segment patterns
quadrat.test.splitppp

Dispersion Test of CSR for Split Point Pattern Based on Quadrat Counts
plot.im

Plot a Pixel Image
simplenet

Simple Example of Linear Network
delaunay.distance

Distance on Delaunay Triangulation
finpines

Pine saplings in Finland.
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
split.im

Divide Image Into Sub-images
compareFit

Residual Diagnostics for Multiple Fitted Models
bdist.pixels

Distance to Boundary of Window
scaletointerval

Rescale Data to Lie Between Specified Limits
vargamma.estK

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
gorillas

Gorilla Nesting Sites
lgcp.estK

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
tile.areas

Compute Areas of Tiles in a Tessellation
whist

Weighted Histogram
setcov

Set Covariance of a Window
nncross

Nearest Neighbours Between Two Patterns
is.empty

Test Whether An Object Is Empty
lurking

Lurking variable plot
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
rescale

Convert dataset to another unit of length
bdist.tiles

Distance to Boundary of Window
identify.psp

Identify Segments in a Line Segment Pattern
shift.im

Apply Vector Translation To Pixel Image
distmap.owin

Distance Map of Window
cut.ppp

Classify Points in a Point Pattern
pointsOnLines

Place Points Evenly Along Specified Lines
expand.owin

Apply Expansion Rule
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
sidelengths.owin

Side Lengths of Enclosing Rectangle of a Window
print.im

Print Brief Details of an Image
methods.boxx

Methods for Multi-Dimensional Box
is.ppm

Test Whether An Object Is A Fitted Point Process Model
model.matrix.slrm

Extract Design Matrix from Spatial Logistic Regression Model
BadGey

Hybrid Geyer Point Process Model
anova.ppm

ANOVA for Fitted Point Process Models
tiles

Extract List of Tiles in a Tessellation
methods.pp3

Methods for three-dimensional point patterns
clip.infline

Intersect Infinite Straight Lines with a Window
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
Jest

Estimate the J-function
nnwhich.ppx

Nearest Neighbours in Any Dimensions
solutionset

Evaluate Logical Expression Involving Pixel Images and Return Region Where Expression is True
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
markcorrint

Mark Correlation Integral
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
markconnect

Mark Connection Function
envelope.envelope

Recompute Envelopes
rstrat

Simulate Stratified Random Point Pattern
methods.linnet

Methods for Linear Networks
AreaInter

The Area Interaction Point Process Model
raster.x

Cartesian Coordinates for a Pixel Raster
shift.ppp

Apply Vector Translation To Point Pattern
identify.ppp

Identify Points in a Point Pattern
coef.ppm

Coefficients of Fitted Point Process Model
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
pixellate.ppp

Convert Point Pattern to Pixel Image
logLik.slrm

Loglikelihood of Spatial Logistic Regression
runifdisc

Generate N Uniform Random Points in a Disc
endpoints.psp

Endpoints of Line Segment Pattern
rStraussHard

Perfect Simulation of the Strauss-Hardcore Process
summary.im

Summarizing a Pixel Image
plot.colourmap

Plot a Colour Map
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
quadratcount

Quadrat counting for a point pattern
stieltjes

Compute Integral of Function Against Cumulative Distribution
npfun

Dummy Function Returns Number of Points
summary.ppm

Summarizing a Fitted Point Process Model
diameter

Diameter of an Object
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
nsegments

Number of Line Segments in a Line Segment Pattern
Hest

Spherical Contact Distribution Function
model.matrix.ppm

Extract Design Matrix from Point Process Model
project.ppm

Force Point Process Model to be Valid
plot.pp3

Plot a three-dimensional point pattern
rMatClust

Simulate Matern Cluster Process
update.ppm

Update a Fitted Point Process Model
volume

Volume of an Object
by.ppp

Apply a Function to a Point Pattern Broken Down by Factor
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
leverage.ppm

Leverage Measure for Spatial Point Process Model
rThomas

Simulate Thomas Process
Extract.ppp

Extract or Replace Subset of Point Pattern
ppm

Fit Point Process Model to Data
harmonic

Basis for Harmonic Functions
periodify

Make Periodic Copies of a Spatial Pattern
split.ppx

Divide Multidimensional Point Pattern into Sub-patterns
rGaussPoisson

Simulate Gauss-Poisson Process
rhohat

Smoothing Estimate of Covariate Transformation
is.marked.ppm

Test Whether A Point Process Model is Marked
pcf

Pair Correlation Function
rpoislinetess

Poisson Line Tessellation
imcov

Spatial Covariance of a Pixel Image
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
localpcf

Local pair correlation function
pcfdot.inhom

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

Generate N Random Points
plot.influence.ppm

Plot Influence Measure
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
plot.linnet

Plot a linear network
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
superimpose

Superimpose Several Geometric Patterns
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
persp.im

Perspective Plot of Pixel Image
plot.bermantest

Plot Result of Berman Test
triplet.family

Triplet Interaction Family
delaunay

Delaunay Triangulation of Point Pattern
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
bind.fv

Combine Function Value Tables
rPoissonCluster

Simulate Poisson Cluster Process
MultiHard

The Multitype Hard Core Point Process Model
nnclean

Nearest Neighbour Clutter Removal
Extract.ppx

Extract Subset of Multidimensional Point Pattern
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
border

Border Region of a Window
sharpen

Data Sharpening of Point Pattern
rMaternI

Simulate Matern Model I
pairdist.default

Pairwise distances
linnet

Create a Linear Network
rpoisline

Generate Poisson Random Line Process
scalardilate

Apply Scalar Dilation
midpoints.psp

Midpoints of Line Segment Pattern
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
unitname

Name for Unit of Length
Extract.listof

Extract or Replace Subset of a List of Things
pcf.fasp

Pair Correlation Function obtained from array of K functions
runifpoint3

Generate N Uniform Random Points in Three Dimensions
as.polygonal

Convert a Window to a Polygonal Window
pixellate.owin

Convert Window to Pixel Image
lengths.psp

Lengths of Line Segments
as.matrix.owin

Convert Pixel Image to Matrix
chicago

Chicago Street Crime Data
data.ppm

Extract Original Data from a Fitted Point Process Model
rMosaicField

Mosaic Random Field
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
plot.msr

Plot a Signed or Vector-Valued Measure
rknn

Theoretical Distribution of Nearest Neighbour Distance
rNeymanScott

Simulate Neyman-Scott Process
as.matrix.im

Convert Pixel Image to Matrix or Array
redwood

California Redwoods Point Pattern (Ripley's Subset)
colourtools

Convert and Compare Colours in Different Formats
ewcdf

Weighted Empirical Cumulative Distribution Function
copper

Berman-Huntington points and lines data
model.frame.ppm

Extract the Variables in a Point Process Model
linearKinhom

Inhomogeneous Linear K Function
simplify.owin

Approximate a Polygon by a Simpler Polygon
vargamma.estpcf

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
nztrees

New Zealand Trees Point Pattern
suffstat

Sufficient Statistic of Point Process Model
fv.object

Function Value Table
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
pairdist.pp3

Pairwise distances in Three Dimensions
as.linim

Convert to Pixel Image on Linear Network
plot.kppm

Plot a fitted cluster point process
Extract.fasp

Extract Subset of Function Array
Kinhom

Inhomogeneous K-function
integral.im

Integral of a Pixel Image
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
rLGCP

Simulate Log-Gaussian Cox Process
Softcore

The Soft Core Point Process Model
Gcross

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

Distance Map
intensity.ppp

Empirical Intensity of Point Pattern
density.psp

Kernel Smoothing of Line Segment Pattern
rescue.rectangle

Convert Window Back To Rectangle
idw

Inverse-distance weighted smoothing of observations at irregular points
infline

Infinite Straight Lines
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
zapsmall.im

Rounding of Pixel Values
waka

Trees in Waka national park
crossdist

Pairwise distances
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
pairsat.family

Saturated Pairwise Interaction Point Process Family
box3

Three-Dimensional Box
square

Square Window
multiplicity.ppp

Count Multiplicity of Duplicate Points
disc

Circular Window
is.multitype.ppp

Test Whether A Point Pattern is Multitype
summary.listof

Summary of a List of Things
smooth.ppp

Spatial smoothing of observations at irregular points
pool.quadrattest

Pool Several Quadrat Tests
eval.fv

Evaluate Expression Involving Functions
Tstat

Third order summary statistic
inside.owin

Test Whether Points Are Inside A Window
japanesepines

Japanese Pines Point Pattern
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
clarkevans.test

Clark and Evans Test
pcfcross

Multitype pair correlation function (cross-type)
linim

Create Pixel Image on Linear Network
intersect.tess

Intersection of Two Tessellations
print.psp

Print Brief Details of a Line Segment Pattern Dataset
marks.psp

Marks of a Line Segment Pattern
localK

Neighbourhood density function
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
clickpoly

Interactively Define a Polygon
is.stationary

Recognise Stationary and Poisson Point Process Models
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
longleaf

Longleaf Pines Point Pattern
spatstat.options

Internal Options in Spatstat Package
rthin

Random Thinning
ppp.object

Class of Point Patterns
rHardcore

Perfect Simulation of the Hardcore Process
selfcrossing.psp

Crossing Points in a Line Segment Pattern
rStrauss

Perfect Simulation of the Strauss Process
lut

Lookup Tables
will.expand

Test Expansion Rule
rmpoint

Generate N Random Multitype Points
rpoislpp

Poisson Point Process on a Linear Network
summary.quad

Summarizing a Quadrature Scheme
progressreport

Print Progress Reports
vertices

Vertices of a Window
round.ppp

Apply Numerical Rounding to Spatial Coordinates
plot.owin

Plot a Spatial Window
rotate.psp

Rotate a Line Segment Pattern
rmpoispp

Generate Multitype Poisson Point Pattern
Extract.fv

Extract Subset of Function Values
summary.splitppp

Summary of a Split Point Pattern
quantile.im

Sample Quantiles of Pixel Image
runifpointOnLines

Generate N Uniform Random Points On Line Segments
transect.im

Pixel Values Along a Transect
as.hyperframe

Convert Data to Hyperframe
trim.rectangle

Cut margins from rectangle
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
Emark

Diagnostics for random marking
eval.fasp

Evaluate Expression Involving Function Arrays
as.tess

Convert Data To Tessellation
Kcom

Model Compensator of K Function
centroid.owin

Centroid of a window
Kmeasure

Reduced Second Moment Measure
closing

Morphological Closing
ants

Harkness-Isham ants' nests data
Ginhom

Inhomogeneous Nearest Neighbour Function
deltametric

Delta Metric
bei

Tropical rain forest trees
Extract.im

Extract Subset of Image
as.function.fv

Convert Function Value Table to Function
blur

Apply Gaussian Blur to a Pixel Image
Extract.psp

Extract Subset of Line Segment Pattern
interp.im

Interpolate a Pixel Image
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
Jdot

Multitype J Function (i-to-any)
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
layered

Create List of Plotting Layers
licence.polygons

Restricted Licence Conditions for Polygon Calculations
methods.box3

Methods for Three-Dimensional Box
convolve.im

Convolution of Pixel Images
distmap.psp

Distance Map of Line Segment Pattern
latest.news

Print News About Latest Version of Package
fv

Create a Function Value Table
pcfdot

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

Foxall's Distance Functions
formula.ppm

Model Formulae for Gibbs Point Process Models
plot.listof

Plot a List of Things
linearK

Linear K Function
bounding.box

Bounding Box of a Window or Point Pattern
mucosa

Cells in Gastric Mucosa
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
localKinhom

Inhomogeneous Neighbourhood Density Function
unnormdensity

Weighted kernel smoother
plot.tess

Plot a tessellation
shapley

Galaxies in the Shapley Supercluster
Gest

Nearest Neighbour Distance Function G
ord.family

Ord Interaction Process Family
is.hybrid

Test Whether Object is a Hybrid
plot.psp

plot a Spatial Line Segment Pattern
plot.splitppp

Plot a List of Point Patterns
quad.object

Class of Quadrature Schemes
quadrats

Divide Region into Quadrats
rescale.im

Convert Pixel Image to Another Unit of Length
rVarGamma

Simulate Neyman-Scott Point Process with Variance Gamma cluster kernel
hamster

Aherne's hamster tumour data
scan.test

Spatial Scan Test
shift.psp

Apply Vector Translation To Line Segment Pattern
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
spruces

Spruces Point Pattern
update.rmhcontrol

Update Control Parameters of Metropolis-Hastings Algorithm
pixellate.psp

Convert Line Segment Pattern to Pixel Image
Gres

Residual G Function
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
Jmulti

Marked J Function
diameter.owin

Diameter of a Window
complement.owin

Take Complement of a Window
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
betacells

Beta Ganglion Cells in Cat Retina
gpc2owin

Convert Polygonal Region into Different Format
coords

Extract or Change Coordinates of a Spatial or Spatiotemporal Point Pattern
markcorr

Mark Correlation Function
lansing

Lansing Woods Point Pattern
gridweights

Compute Quadrature Weights Based on Grid Counts
linearpcf

Linear Pair Correlation Function
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
flipxy

Exchange X and Y Coordinates
pairdist.ppx

Pairwise Distances in Any Dimensions
crossdist.default

Pairwise distances between two different sets of points
crossdist.lpp

Pairwise distances between two point patterns on a linear network
print.quad

Print a Quadrature Scheme
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
concatxy

Concatenate x,y Coordinate Vectors
pppmatching

Create a Point Matching
lohboot

Bootstrap Confidence Bands for Summary Function
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
rcell

Simulate Baddeley-Silverman Cell Process
rotate.im

Rotate a Pixel Image
Kdot

Multitype K Function (i-to-any)
varblock

Estimate Variance of Summary Statistic by Subdivision
Jcross

Multitype J Function (i-to-j)
simulate.kppm

Simulate a Fitted Cluster Point Process Model
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rsyst

Simulate systematic random point pattern
Kdot.inhom

Inhomogeneous Multitype K Dot Function
as.ppp

Convert Data To Class ppp
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
demopat

Artificial Data Point Pattern
affine.psp

Apply Affine Transformation To Line Segment Pattern
cut.im

Convert Pixel Image from Numeric to Factor
ippm

Optimise Irregular Trend Parameters in Point Process Model
LambertW

Lambert's W Function
heather

Diggle's Heather Data
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
compatible

Test Whether Objects Are Compatible
miplot

Morishita Index Plot
kppm

Fit Cluster or Cox Point Process Model
rSSI

Simulate Simple Sequential Inhibition
rotate

Rotate
plot.plotppm

Plot a plotppm Object Created by plot.ppm
rshift.splitppp

Randomly Shift a List of Point Patterns
runifpointx

Generate N Uniform Random Points in Any Dimensions
spatstat-package

The Spatstat Package
harmonise.im

Make Pixel Images Compatible
is.owin

Test Whether An Object Is A Window
as.data.frame.im

Convert Pixel Image to Data Frame
bronzefilter

Bronze gradient filter data
chorley

Chorley-Ribble Cancer Data
intensity

Intensity of a Dataset or a Model
exactMPLEstrauss

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
compatible.fasp

Test Whether Function Arrays Are Compatible
npoints

Number of Points in a Point Pattern
is.subset.owin

Determine Whether One Window is Contained In Another
nearestsegment

Find Line Segment Nearest to Each Point
plot.fv

Plot Function Values
ppm.object

Class of Fitted Point Process Models
pppdist

Distance Between Two Point Patterns
predict.kppm

Prediction from a Fitted Cluster Point Process Model
lppm

Fit Point Process Model to Point Pattern on Linear Network
quadratresample

Resample a Point Pattern by Resampling Quadrats
rlabel

Random Re-Labelling of Point Pattern
shift

Apply Vector Translation
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
psp.object

Class of Line Segment Patterns
Jinhom

Inhomogeneous J-function
reduced.sample

Reduced Sample Estimator using Histogram Data
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
Fest

Estimate the empty space function F
Replace.im

Reset Values in Subset of Image
Linhom

L-function
runifpoint

Generate N Uniform Random Points
distfun

Distance Map as a Function
Extract.tess

Extract or Replace Subset of Tessellation
addvar

Added Variable Plot for Point Process Model
as.rectangle

Window Frame
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
cells

Biological Cells Point Pattern
distmap.ppp

Distance Map of Point Pattern
density.ppp

Kernel Smoothed Intensity of Point Pattern
Hardcore

The Hard Core Point Process Model
clmfires

Castilla-La Mancha Forest Fires
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
is.marked

Test Whether Marks Are Present
Poisson

Poisson Point Process Model
connected

Connected components of an image or window
hist.im

Histogram of Pixel Values in an Image
alltypes

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

Nearest-Neighbour Correlation Indices of Marked Point Pattern
pool.envelope

Pool Data from Several Envelopes
nnwhich.pp3

Nearest neighbours in three dimensions
lpp

Create Point Pattern on Linear Network
pixelquad

Quadrature Scheme Based on Pixel Grid
profilepl

Profile Maximum Pseudolikelihood
rjitter

Random Perturbation of a Point Pattern
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
smooth.fv

Apply Smoothing to Function Values
tess

Create a Tessellation
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
rshift.psp

Randomly Shift a Line Segment Pattern
smooth.msr

Smooth a Signed or Vector-Valued Measure
msr

Signed or Vector-Valued Measure
pool.rat

Pool Data from Several Ratio Objects
nearest.raster.point

Find Pixel Nearest to a Given Point
fasp.object

Function Arrays for Spatial Patterns
plot.slrm

Plot a Fitted Spatial Logistic Regression
intensity.ppm

Intensity of Fitted Point Process Model
opening

Morphological Opening
marks

Marks of a Point Pattern
is.multitype

Test whether Object is Multitype
edges2triangles

List Triangles in a Graph
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
affine.im

Apply Affine Transformation To Pixel Image
nbfires

Point Patterns of New Brunswick Forest Fires
psp

Create a Line Segment Pattern
im.object

Class of Images
lineardisc

Compute Disc of Given Radius in Linear Network
clusterset

Allard-Fraley Estimator of Cluster Feature
Pairwise

Generic Pairwise Interaction model
incircle

Find Largest Circle Inside Window
nnfun

Nearest Neighbour Map as a Function
sumouter

Compute Quadratic Forms
summary.ppp

Summary of a Point Pattern Dataset
iplot

Point and Click Interface for Displaying a Point Pattern
pool

Pool Data
predict.ppm

Prediction from a Fitted Point Process Model
is.ppp

Test Whether An Object Is A Point Pattern
nndist

Nearest neighbour distances
plot.envelope

Plot a Simulation Envelope
rMaternII

Simulate Matern Model II
nndist.pp3

Nearest neighbour distances in three dimensions
rounding

Detect Numerical Rounding
reach

Interaction Distance of a Point Process
simdat

Simulated Point Pattern
spokes

Spokes pattern of dummy points
unique.ppp

Extract Unique Points from a Spatial Point Pattern
rat

Ratio object
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts