Learn R Programming

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

spatstat (version 1.29-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

21,281

Version

1.29-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

October 14th, 2012

Functions in spatstat (1.29-0)

mean.im

Maximum, Minimum, Mean, Median, Range or Sum of Pixel Values in an Image
ord.family

Ord Interaction Process Family
miplot

Morishita Index Plot
pixelquad

Quadrature Scheme Based on Pixel Grid
plot.colourmap

Plot a Colour Map
pppdist

Distance Between Two Point Patterns
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
project.ppm

Force Point Process Model to be Valid
rMaternII

Simulate Matern Model II
rcell

Simulate Baddeley-Silverman Cell Process
rescale

Convert dataset to another unit of length
rmhexpand

Specify Simulation Window or Expansion Rule
methods.units

Methods for Units
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
nbfires

Point Patterns of New Brunswick Forest Fires
owin

Create a Window
nearestsegment

Find Line Segment Nearest to Each Point
rpoisline

Generate Poisson Random Line Process
pairwise.family

Pairwise Interaction Process Family
nnwhich.pp3

Nearest neighbours in three dimensions
runiflpp

Uniform Random Points on a Linear Network
methods.boxx

Methods for Multi-Dimensional Box
summary.quad

Summarizing a Quadrature Scheme
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
pcf

Pair Correlation Function
predict.kppm

Prediction from a Fitted Cluster Point Process Model
pixellate.psp

Convert Line Segment Pattern to Pixel Image
pcfinhom

Inhomogeneous Pair Correlation Function
unique.ppp

Extract Unique Points from a Spatial Point Pattern
multiplicity.ppp

Count Multiplicity of Duplicate Points
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
plot.msr

Plot a Signed or Vector-Valued Measure
plot.im

Plot a Pixel Image
pppmatching.object

Class of Point Matchings
ppm

Fit Point Process Model to Data
pool

Pool Data
quadrats

Divide Region into Quadrats
pcf.fasp

Pair Correlation Function obtained from array of K functions
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
rStrauss

Perfect Simulation of the Strauss Process
persp.im

Perspective Plot of Pixel Image
rStraussHard

Perfect Simulation of the Strauss-Hardcore Process
vargamma.estpcf

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

Reflect In Origin
rDGS

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

plot a Spatial Line Segment Pattern
volume

Volume of an Object
BadGey

Hybrid Geyer Point Process Model
Extract.fv

Extract Subset of Function Values
pp3

Three Dimensional Point Pattern
raster.x

Cartesian Coordinates for a Pixel Raster
rshift.splitppp

Randomly Shift a List of Point Patterns
setcov

Set Covariance of a Window
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
ponderosa

Ponderosa Pine Tree Point Pattern
print.ppp

Print Brief Details of a Point Pattern Dataset
runifpoint

Generate N Uniform Random Points
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rSSI

Simulate Simple Sequential Inhibition
rVarGamma

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

Data and Code From JRSS Discussion Paper on Residuals
smooth.msr

Smooth a Signed or Vector-Valued Measure
rLGCP

Simulate Log-Gaussian Cox Process
rotate.im

Rotate a Pixel Image
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
F3est

Empty Space Function of a Three-Dimensional Point Pattern
G3est

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

Model Compensator of K Function
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
amacrine

Hughes' Amacrine Cell Data
shift.im

Apply Vector Translation To Pixel Image
Extract.lpp

Extract Subset of Point Pattern on Linear Network
affine.owin

Apply Affine Transformation To Window
scan.test

Spatial Scan Test
Kres

Residual K Function
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
as.im

Convert to Pixel Image
update.kppm

Update a Fitted Cluster Point Process Model
Kcross.inhom

Inhomogeneous Cross K Function
shift.psp

Apply Vector Translation To Line Segment Pattern
summary.ppm

Summarizing a Fitted Point Process Model
Softcore

The Soft Core Point Process Model
as.psp

Convert Data To Class psp
betacells

Beta Ganglion Cells in Cat Retina
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
contour.im

Contour plot of pixel image
affine.ppp

Apply Affine Transformation To Point Pattern
bramblecanes

Hutchings' Bramble Canes data
as.data.frame.im

Convert Pixel Image to Data Frame
unitname

Name for Unit of Length
complement.owin

Take Complement of a Window
DiggleGratton

Diggle-Gratton model
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
as.polygonal

Convert a Window to a Polygonal Window
envelope

Simulation Envelopes of Summary Function
LennardJones

The Lennard-Jones Potential
affine.psp

Apply Affine Transformation To Line Segment Pattern
blur

Apply Gaussian Blur to a Pixel Image
affine.im

Apply Affine Transformation To Pixel Image
bounding.box.xy

Convex Hull of Points
matclust.estpcf

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

Morphological Erosion
pairdist.ppx

Pairwise Distances in Any Dimensions
by.im

Apply Function to Image Broken Down by Factor
midpoints.psp

Midpoints of Line Segment Pattern
model.matrix.slrm

Extract Design Matrix from Spatial Logistic Regression Model
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
effectfun

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

Test Whether Objects Are Compatible
border

Border Region of a Window
box3

Three-Dimensional Box
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
cells

Biological Cells Point Pattern
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
idw

Inverse-distance weighted smoothing of observations at irregular points
predict.ppm

Prediction from a Fitted Point Process Model
infline

Infinite Straight Lines
iplot

Point and Click Interface for Displaying a Point Pattern
distmap

Distance Map
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
print.ppm

Print a Fitted Point Process Model
closing

Morphological Closing
quadscheme

Generate a Quadrature Scheme from a Point Pattern
inside.owin

Test Whether Points Are Inside A Window
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
clusterset

Allard-Fraley Estimator of Cluster Feature
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
convexhull

Convex Hull
lppm

Fit Point Process Model to Point Pattern on Linear Network
contour.listof

Plot a List of Things
psp.object

Class of Line Segment Patterns
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
rPoissonCluster

Simulate Poisson Cluster Process
concatxy

Concatenate x,y Coordinate Vectors
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
rknn

Theoretical Distribution of Nearest Neighbour Distance
collapse.fv

Collapse Several Function Tables into One
eval.im

Evaluate Expression Involving Pixel Images
methods.slrm

Methods for Spatial Logistic Regression Models
finpines

Pine saplings in Finland.
eem

Exponential Energy Marks
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
layered

Create List of Plotting Layers
urkiola

Urkiola Woods Point Pattern
will.expand

Test Expansion Rule
distfun

Distance Map as a Function
nearest.raster.point

Find Pixel Nearest to a Given Point
dfbetas.ppm

Parameter influence measure
rmpoint

Generate N Random Multitype Points
Emark

Diagnostics for random marking
fv

Create a Function Value Table
interp.im

Interpolate a Pixel Image
eval.fasp

Evaluate Expression Involving Function Arrays
simdat

Simulated Point Pattern
imcov

Spatial Covariance of a Pixel Image
endpoints.psp

Endpoints of Line Segment Pattern
nndist

Nearest neighbour distances
MultiHard

The Multitype Hard Core Point Process Model
is.ppm

Test Whether An Object Is A Fitted Point Process Model
Strauss

The Strauss Point Process Model
opening

Morphological Opening
periodify

Make Periodic Copies of a Spatial Pattern
solutionset

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

Bootstrap Confidence Bands for Summary Function
linearpcf

Linear Pair Correlation Function
identify.ppp

Identify Points in a Point Pattern
influence.ppm

Influence Measure for Spatial Point Process Model
Iest

Estimate the I-function
plot.pp3

Plot a three-dimensional point pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
vargamma.estK

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
plot.splitppp

Plot a List of Point Patterns
as.function.fv

Convert Function Value Table to Function
intensity.ppm

Intensity of Fitted Point Process Model
Kmulti.inhom

Inhomogeneous Marked K-Function
as.interact

Extract Interaction Structure
crossdist.ppp

Pairwise distances between two different point patterns
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
colourmap

Colour Lookup Tables
dirichlet

Dirichlet Tessellation of Point Pattern
bdist.points

Distance to Boundary of Window
quad.object

Class of Quadrature Schemes
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
rMosaicField

Mosaic Random Field
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
rThomas

Simulate Thomas Process
localKinhom

Inhomogeneous Neighbourhood Density Function
rescue.rectangle

Convert Window Back To Rectangle
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
convexhull.xy

Convex Hull of Points
lineardisc

Compute Disc of Given Radius in Linear Network
distmap.ppp

Distance Map of Point Pattern
diameter

Diameter of an Object
edges2triangles

List Triangles in a Graph
dilation

Morphological Dilation
runifpointOnLines

Generate N Uniform Random Points On Line Segments
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
as.hyperframe

Convert Data to Hyperframe
gridcentres

Rectangular grid of points
split.im

Divide Image Into Sub-images
suffstat

Sufficient Statistic of Point Process Model
with.fv

Evaluate an Expression in a Function Table
Gmulti

Marked Nearest Neighbour Distance Function
intensity.ppp

Empirical Intensity of Point Pattern
linearK

Linear K Function
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
Extract.psp

Extract Subset of Line Segment Pattern
npfun

Dummy Function Returns Number of Points
Kest

K-function
anova.ppm

ANOVA for Fitted Point Process Models
pairs.im

Scatterplot Matrix for Pixel Images
plot.ppp

plot a Spatial Point Pattern
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
area.owin

Area of a Window
print.owin

Print Brief Details of a Spatial Window
plot.envelope

Plot a Simulation Envelope
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
mincontrast

Method of Minimum Contrast
print.psp

Print Brief Details of a Line Segment Pattern Dataset
plot.leverage.ppm

Plot Leverage Function
rescale.ppp

Convert Point Pattern to Another Unit of Length
plot.influence.ppm

Plot Influence Measure
bdist.pixels

Distance to Boundary of Window
pairdist.default

Pairwise distances
parres

Partial Residuals for Point Process Model
compatible.fv

Test Whether Function Objects Are Compatible
corners

Corners of a rectangle
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
rotate.ppp

Rotate a Point Pattern
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
default.expand

Default Expansion Rule for Simulation of Model
nnclean

Nearest Neighbour Clutter Removal
rsyst

Simulate systematic random point pattern
rshift.psp

Randomly Shift a Line Segment Pattern
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
sharpen

Data Sharpening of Point Pattern
pixellate.owin

Convert Window to Pixel Image
ppp

Create a Point Pattern
pool.quadrattest

Pool Several Quadrat Tests
spokes

Spokes pattern of dummy points
selfcrossing.psp

Crossing Points in a Line Segment Pattern
update.ppm

Update a Fitted Point Process Model
gridweights

Compute Quadrature Weights Based on Grid Counts
ppm.object

Class of Fitted Point Process Models
spruces

Spruces Point Pattern
inforder.family

Infinite Order Interaction Family
rmpoispp

Generate Multitype Poisson Point Pattern
intersect.tess

Intersection of Two Tessellations
vcov.kppm

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

Estimate the empty space function F
is.multitype.ppp

Test Whether A Point Pattern is Multitype
vertices

Vertices of a Window
is.owin

Test Whether An Object Is A Window
addvar

Added Variable Plot for Point Process Model
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
shift

Apply Vector Translation
Extract.listof

Extract or Replace Subset of a List of Things
spatstat-deprecated

Deprecated spatstat functions
superimpose

Superimpose Several Geometric Patterns
affine

Apply Affine Transformation
as.ppm

Extract Fitted Point Process Model
Lcross.inhom

Inhomogeneous Cross Type L Function
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
markcorrint

Mark Correlation Integral
ants

Harkness-Isham ants' nests data
as.rectangle

Window Frame
Ord

Generic Ord Interaction model
OrdThresh

Ord's Interaction model
plot.fasp

Plot a Function Array
plot.plotppm

Plot a plotppm Object Created by plot.ppm
circumradius

Circumradius and Diameter of a Linear Network
pcfdot

Multitype pair correlation function (i-to-any)
Kest.fft

K-function using FFT
angles.psp

Orientation Angles of Line Segments
as.ppp

Convert Data To Class ppp
bind.fv

Combine Function Value Tables
clickppp

Interactively Add Points
crossing.psp

Crossing Points of Two Line Segment Patterns
bermantest

Berman's Tests for Point Process Model
chorley

Chorley-Ribble Cancer Data
diameter.box3

Geometrical Calculations for Three-Dimensional Box
chicago

Chicago Street Crime Data
pool.fasp

Pool Data from Several Function Arrays
print.im

Print Brief Details of an Image
distmap.owin

Distance Map of Window
clarkevans.test

Clark and Evans Test
clip.infline

Intersect Infinite Straight Lines with a Window
boxx

Multi-Dimensional Box
leverage.ppm

Leverage Measure for Spatial Point Process Model
disc

Circular Window
letterR

Window in Shape of Letter R
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
discretise

Safely Convert Point Pattern Window to Binary Mask
exactMPLEstrauss

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
crossdist

Pairwise distances
rescale.owin

Convert Window to Another Unit of Length
residuals.ppm

Residuals for Fitted Point Process Model
harmonic

Basis for Harmonic Functions
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
is.subset.owin

Determine Whether One Window is Contained In Another
discpartarea

Area of Part of Disc
rotate

Rotate
reduced.sample

Reduced Sample Estimator using Histogram Data
japanesepines

Japanese Pines Point Pattern
fryplot

Fry Plot of Point Pattern
formula.fv

Extract or Change the Plot Formula for a Function Value Table
im.object

Class of Images
methods.box3

Methods for Three-Dimensional Box
nncross

Nearest Neighbours Between Two Patterns
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
nsegments

Number of Line Segments in a Line Segment Pattern
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
lut

Lookup Tables
shift.owin

Apply Vector Translation To Window
flipxy

Exchange X and Y Coordinates
localK

Neighbourhood density function
is.stationary

Recognise Stationary and Poisson Point Process Models
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
markcorr

Mark Correlation Function
Extract.ppp

Extract or Replace Subset of Point Pattern
pcf.fv

Pair Correlation Function obtained from K Function
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
ippm

Optimise Irregular Trend Parameters in Point Process Model
pool.envelope

Pool Data from Several Envelopes
rHardcore

Perfect Simulation of the Hardcore Process
rgbim

Create Colour-Valued Pixel Image
Extract.quad

Subset of Quadrature Scheme
simplenet

Simple Example of Linear Network
Kcross

Multitype K Function (Cross-type)
Jest

Estimate the J-function
MultiStrauss

The Multitype Strauss Point Process Model
swedishpines

Swedish Pines Point Pattern
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
unnormdensity

Weighted kernel smoother
varblock

Estimate Variance of Summary Statistic by Subdivision
vcov.slrm

Variance-Covariance Matrix for a Fitted Spatial Logistic Regression
Saturated

Saturated Pairwise Interaction model
nnwhich

Nearest neighbour
Geyer

Geyer's Saturation Point Process Model
pairdist.ppp

Pairwise distances
plot.hyperframe

Plot Entries in a Hyperframe
pcfcross.inhom

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

Reset Values in Subset of Image
as.linim

Convert to Pixel Image on Linear Network
Gres

Residual G Function
pixellate

Convert Spatial Object to Pixel Image
plot.listof

Plot a List of Things
methods.funxy

Methods for Spatial Functions
Jcross

Multitype J Function (i-to-j)
by.ppp

Apply a Function to a Point Pattern Broken Down by Factor
bdist.tiles

Distance to Boundary of Window
pointsOnLines

Place Points Evenly Along Specified Lines
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
pppmatching

Create a Point Matching
compatible.im

Test Whether Pixel Images Are Compatible
nndist.psp

Nearest neighbour distances between line segments
quadratresample

Resample a Point Pattern by Resampling Quadrats
plot.tess

Plot a tessellation
bounding.box

Bounding Box of a Window or Point Pattern
pool.rat

Pool Data from Several Ratio Objects
quadrat.test.splitppp

Dispersion Test of CSR for Split Point Pattern Based on Quadrat Counts
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
quadratcount

Quadrat counting for a point pattern
quantile.im

Sample Quantiles of Pixel Image
rlabel

Random Re-Labelling of Point Pattern
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
gpc2owin

Convert Polygonal Region into Different Format
rMosaicSet

Mosaic Random Set
rGaussPoisson

Simulate Gauss-Poisson Process
identify.psp

Identify Segments in a Line Segment Pattern
rlinegrid

Generate grid of parallel lines with random displacement
centroid.owin

Centroid of a window
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
runifpoint3

Generate N Uniform Random Points in Three Dimensions
sumouter

Compute Quadratic Forms
runifpointx

Generate N Uniform Random Points in Any Dimensions
is.marked.ppp

Test Whether A Point Pattern is Marked
ripras

Estimate window from points alone
shapley

Galaxies in the Shapley Supercluster
clickjoin

Interactively join vertices on a plot
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
tess

Create a Tessellation
default.dummy

Generate a Default Pattern of Dummy Points
scalardilate

Apply Scalar Dilation
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
LambertW

Lambert's W Function
fasp.object

Function Arrays for Spatial Patterns
smooth.ppp

Spatial smoothing of observations at irregular points
kppm

Fit Cluster or Cox Point Process Model
trim.rectangle

Cut margins from rectangle
lengths.psp

Lengths of Line Segments
lgcp.estpcf

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

Spatial Logistic Regression
anemones

Beadlet Anemones Data
harmonise.im

Make Pixel Images Compatible
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
bronzefilter

Bronze gradient filter data
Extract.msr

Extract Subset of Signed or Vector Measure
hist.im

Histogram of Pixel Values in an Image
as.matrix.owin

Convert Pixel Image to Matrix
split.ppx

Divide Multidimensional Point Pattern into Sub-patterns
is.multitype

Test whether Object is Multitype
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
triplet.family

Triplet Interaction Family
Fiksel

The Fiksel Interaction
is.multitype.ppm

Test Whether A Point Process Model is Multitype
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Extract.tess

Extract or Replace Subset of Tessellation
copper

Berman-Huntington points and lines data
lpp

Create Point Pattern on Linear Network
Ldot

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

Convert and Compare Colours in Different Formats
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
cut.im

Convert Pixel Image from Numeric to Factor
expand.owin

Apply Expansion Rule
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Lest

L-function
Lcross

Multitype L-function (cross-type)
is.rectangle

Determine Type of Window
convolve.im

Convolution of Pixel Images
Poisson

Poisson Point Process Model
diameter.owin

Diameter of a Window
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
logLik.slrm

Loglikelihood of Spatial Logistic Regression
linnet

Create a Linear Network
markconnect

Mark Connection Function
as.owin

Convert Data To Class owin
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
clarkevans

Clark and Evans Aggregation Index
compareFit

Residual Diagnostics for Multiple Fitted Models
mucosa

Cells in Gastric Mucosa
nndist.pp3

Nearest neighbour distances in three dimensions
envelope.envelope

Recompute Envelopes
model.frame.ppm

Extract the Variables in a Point Process Model
gorillas

Gorilla Nesting Sites
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
lurking

Lurking variable plot
logLik.ppm

Log Likelihood and AIC for Point Process Model
npoints

Number of Points in a Point Pattern
pairdist.lpp

Pairwise shortest-path distances between points on a linear network
plot.layered

Layered Plot
rMaternI

Simulate Matern Model I
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
rpoint

Generate N Random Points
rshift

Random Shift
rshift.ppp

Randomly Shift a Point Pattern
update.rmhcontrol

Update Control Parameters of Metropolis-Hastings Algorithm
whist

Weighted Histogram
Gcom

Model Compensator of Nearest Neighbour Function
Gfox

Foxall's Distance Functions
zapsmall.im

Rounding of Pixel Values
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
Kdot

Multitype K Function (i-to-any)
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
as.matrix.im

Convert Pixel Image to Matrix or Array
bei

Tropical rain forest trees
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
eroded.areas

Areas of Morphological Erosions
is.ppp

Test Whether An Object Is A Point Pattern
linearKinhom

Inhomogeneous Linear K Function
longleaf

Longleaf Pines Point Pattern
methods.pp3

Methods for three-dimensional point patterns
pcfcross

Multitype pair correlation function (cross-type)
pixellate.ppp

Convert Point Pattern to Pixel Image
pcf.ppp

Pair Correlation Function of Point Pattern
predict.lppm

Predict Point Process Model on Linear Network
pcfdot.inhom

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

Create a Line Segment Pattern
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
rescale.im

Convert Pixel Image to Another Unit of Length
rotate.owin

Rotate a Window
rotate.psp

Rotate a Line Segment Pattern
Extract.splitppp

Extract or Replace Sub-Patterns
Kmulti

Marked K-Function
allstats

Calculate four standard summary functions of a point pattern.
areaGain

Difference of Disc Areas
Linhom

L-function
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
crossdist.psp

Pairwise distances between two different line segment patterns
coords

Extract or Change Coordinates of a Spatial or Spatiotemporal Point Pattern
density.ppp

Kernel Smoothed Intensity of Point Pattern
eval.fv

Evaluate Expression Involving Functions
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
nnfun

Nearest Neighbour Map as a Function
is.im

Test Whether An Object Is A Pixel Image
is.marked

Test Whether Marks Are Present
owin.object

Class owin
pairdist.psp

Pairwise distances between line segments
plot.owin

Plot a Spatial Window
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
progressreport

Print Progress Reports
project2segment

Move Point To Nearest Line
split.ppp

Divide Point Pattern into Sub-patterns
summary.owin

Summary of a Spatial Window
tiles

Extract List of Tiles in a Tessellation
Kmeasure

Reduced Second Moment Measure
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
areaLoss

Difference of Disc Areas
as.mask

Pixel Image Approximation of a Window
as.tess

Convert Data To Tessellation
crossdist.lpp

Pairwise distances between two point patterns on a linear network
crossdist.default

Pairwise distances between two different sets of points
data.ppm

Extract Original Data from a Fitted Point Process Model
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
incircle

Find Largest Circle Inside Window
is.convex

Test Whether a Window is Convex
lansing

Lansing Woods Point Pattern
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
pairsat.family

Saturated Pairwise Interaction Point Process Family
plot.linnet

Plot a linear network
perimeter

Perimeter Length of Window
plot.slrm

Plot a Fitted Spatial Logistic Regression
profilepl

Profile Maximum Pseudolikelihood
shift.ppp

Apply Vector Translation To Point Pattern
square

Square Window
summary.ppp

Summary of a Point Pattern Dataset
stieltjes

Compute Integral of Function Against Cumulative Distribution
methods.linnet

Methods for Linear Networks
transect.im

Pixel Values Along a Transect
AreaInter

The Area Interaction Point Process Model
Jdot

Multitype J Function (i-to-any)
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
plot.fv

Plot Function Values
Kinhom

Inhomogeneous K-function
ppx

Multidimensional Space-Time Point Pattern
Pairwise

Generic Pairwise Interaction model
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
StraussHard

The Strauss / Hard Core Point Process Model
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
rjitter

Random Perturbation of a Point Pattern
append.psp

Combine Two Line Segment Patterns
rmh.default

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

Simulate Stratified Random Point Pattern
compatible.fasp

Test Whether Function Arrays Are Compatible
density.psp

Kernel Smoothing of Line Segment Pattern
rthin

Random Thinning
runifdisc

Generate N Uniform Random Points in a Disc
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
is.empty

Test Whether An Object Is Empty
spatstat-package

The Spatstat Package
localpcf

Local pair correlation function
summary.splitppp

Summary of a Split Point Pattern
marks.psp

Marks of a Line Segment Pattern
Extract.fasp

Extract Subset of Function Array
tile.areas

Compute Areas of Tiles in a Tessellation
Extract.ppx

Extract Subset of Multidimensional Point Pattern
Gcross

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

K function of a model
K3est

K-function of a Three-Dimensional Point Pattern
Kscaled

Locally Scaled K-function
Tstat

Third order summary statistic
as.box3

Convert Data to Three-Dimensional Box
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
demopat

Artificial Data Point Pattern
envelope.lpp

Envelope for Point Patterns on Linear Network
ewcdf

Weighted Empirical Cumulative Distribution Function
flu

Influenza Virus Proteins
hamster

Aherne's hamster tumour data
latest.news

Print News About Latest Version of Package
lgcp.estK

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

Marks of a Point Pattern
matchingdist

Distance for a Point Pattern Matching
methods.lpp

Methods for Point Patterns on a Linear Network
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
methods.kppm

Methods for Cluster Point Process Models
murchison

Murchison gold deposits
model.images

Compute Images of Constructed Covariates
pairdist

Pairwise distances
pairdist.pp3

Pairwise distances in Three Dimensions
plot.kppm

Plot a fitted cluster point process
plot.quad

plot a Spatial Quadrature Scheme
plot.bermantest

Plot Result of Berman Test
print.quad

Print a Quadrature Scheme
rat

Ratio object
reach

Interaction Distance of a Point Process
rMatClust

Simulate Matern Cluster Process
Hest

Spherical Contact Distribution Function
rpoislinetess

Poisson Line Tessellation
Jmulti

Marked J Function
distmap.psp

Distance Map of Line Segment Pattern
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
hyperframe

Hyper Data Frame
integral.im

Integral of a Pixel Image
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
model.depends

Identify Covariates Involved in each Model Term
redwood

California Redwoods Point Pattern (Ripley's Subset)
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
simplify.owin

Approximate a Polygon by a Simpler Polygon
simulate.kppm

Simulate a Fitted Cluster Point Process Model
smooth.fv

Apply Smoothing to Function Values
spatstat.options

Internal Options in Spatstat Package
rpoispp

Generate Poisson Point Pattern
summary.listof

Summary of a List of Things
unmark

Remove Marks
valid.ppm

Check Whether Point Process Model is Valid
Extract.im

Extract Subset of Image
union.quad

Union of Data and Dummy Points
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
Hardcore

The Hard Core Point Process Model
Triplets

The Triplet Point Process Model
Gest

Nearest Neighbour Distance Function G
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
connected

Connected components of an image or window
dilated.areas

Areas of Morphological Dilations
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
formula.ppm

Model Formulae for Gibbs Point Process Models
heather

Diggle's Heather Data
im

Create a Pixel Image Object
intensity

Intensity of a Dataset or a Model
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
fv.object

Function Value Table
licence.polygons

Restricted Licence Conditions for Polygon Calculations
marktable

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

Mark Variogram
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
coef.ppm

Coefficients of Fitted Point Process Model
funxy

Spatial Function Class
clickpoly

Interactively Define a Polygon
is.marked.ppm

Test Whether A Point Process Model is Marked
model.matrix.ppm

Extract Design Matrix from Point Process Model
plot.ppm

plot a Fitted Point Process Model
rNeymanScott

Simulate Neyman-Scott Process
rpoislpp

Poisson Point Process on a Linear Network
plot.linim

Plot Pixel Image on Linear Network
spatstat-internal

Internal spatstat functions
summary.im

Summarizing a Pixel Image
delaunay

Delaunay Triangulation of Point Pattern
deltametric

Delta Metric
nztrees

New Zealand Trees Point Pattern
scanpp

Read Point Pattern From Data File
msr

Signed or Vector-Valued Measure
linim

Create Pixel Image on Linear Network
nnwhich.ppx

Nearest Neighbours in Any Dimensions
scaletointerval

Rescale Data to Lie Between Specified Limits
cut.ppp

Classify Points in a Point Pattern
ppp.object

Class of Point Patterns
rmh.ppm

Simulate from a Fitted Point Process Model
rhohat

Smoothing Estimate of Covariate Transformation
summary.psp

Summary of a Line Segment Pattern Dataset
levelset

Level Set of a Pixel Image