Learn R Programming

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

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

16,590

Version

1.28-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

June 11th, 2012

Functions in spatstat (1.28-0)

split.ppp

Divide Point Pattern into Sub-patterns
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
unmark

Remove Marks
Kcross.inhom

Inhomogeneous Cross K Function
Extract.fv

Extract Subset of Function Values
Triplets

The Triplet Point Process Model
angles.psp

Orientation Angles of Line Segments
amacrine

Hughes' Amacrine Cell Data
as.mask

Pixel Image Approximation of a Window
as.tess

Convert Data To Tessellation
compatible.im

Test Whether Pixel Images Are Compatible
crossdist.default

Pairwise distances between two different sets of points
unitname

Name for Unit of Length
delaunay

Delaunay Triangulation of Point Pattern
summary.im

Summarizing a Pixel Image
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
density.ppp

Kernel Smoothed Intensity of Point Pattern
summary.quad

Summarizing a Quadrature Scheme
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
will.expand

Test Expansion Rule
Extract.fasp

Extract Subset of Function Array
Extract.lpp

Extract Subset of Point Pattern on Linear Network
Geyer

Geyer's Saturation Point Process Model
Jmulti

Marked J Function
Pairwise

Generic Pairwise Interaction model
StraussHard

The Strauss / Hard Core Point Process Model
Kcross

Multitype K Function (Cross-type)
affine.im

Apply Affine Transformation To Pixel Image
Kmulti.inhom

Inhomogeneous Marked K-Function
idw

Inverse-distance weighted smoothing of observations at irregular points
is.im

Test Whether An Object Is A Pixel Image
Lest

L-function
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
is.multitype.ppp

Test Whether A Point Pattern is Multitype
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
as.matrix.im

Convert Pixel Image to Matrix or Array
OrdThresh

Ord's Interaction model
as.interact

Extract Interaction Structure
methods.linnet

Methods for Linear Networks
boxx

Multi-Dimensional Box
copper

Berman-Huntington points and lines data
pairdist.ppp

Pairwise distances
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
bounding.box.xy

Convex Hull of Points
deltametric

Delta Metric
eval.im

Evaluate Expression Involving Pixel Images
flu

Influenza Virus Proteins
pairdist.ppx

Pairwise Distances in Any Dimensions
clickjoin

Interactively join vertices on a plot
plot.listof

Plot a List of Things
im.object

Class of Images
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
fasp.object

Function Arrays for Spatial Patterns
plot.kppm

Plot a fitted cluster point process
cells

Biological Cells Point Pattern
gorillas

Gorilla Nesting Sites
clickppp

Interactively Add Points
is.marked.ppm

Test Whether A Point Process Model is Marked
predict.kppm

Prediction from a Fitted Cluster Point Process Model
is.marked

Test Whether Marks Are Present
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
iplot

Point and Click Interface for Displaying a Point Pattern
compatible.fasp

Test Whether Function Arrays Are Compatible
is.rectangle

Determine Type of Window
lansing

Lansing Woods Point Pattern
solutionset

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

Test Whether Objects Are Compatible
logLik.ppm

Log Likelihood and AIC for Point Process Model
square

Square Window
tess

Create a Tessellation
update.ppm

Update a Fitted Point Process Model
valid.ppm

Check Whether Point Process Model is Valid
im

Create a Pixel Image Object
volume

Volume of an Object
model.matrix.ppm

Extract Design Matrix from Point Process Model
flipxy

Exchange X and Y Coordinates
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
linnet

Create a Linear Network
nnwhich.ppx

Nearest Neighbours in Any Dimensions
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
periodify

Make Periodic Copies of a Spatial Pattern
lgcp.estpcf

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

Linear Pair Correlation Function
Extract.msr

Extract Subset of Signed or Vector Measure
pairdist.default

Pairwise distances
pixellate.psp

Convert Line Segment Pattern to Pixel Image
owin.object

Class owin
project.ppm

Force Point Process Model to be Valid
Extract.tess

Extract or Replace Subset of Tessellation
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
Ldot.inhom

Inhomogeneous Multitype L Dot Function
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
rMosaicField

Mosaic Random Field
plot.slrm

Plot a Fitted Spatial Logistic Regression
pcfcross

Multitype pair correlation function (cross-type)
pairdist.pp3

Pairwise distances in Three Dimensions
summary.ppm

Summarizing a Fitted Point Process Model
trim.rectangle

Cut margins from rectangle
plot.fv

Plot Function Values
anova.ppm

ANOVA for Fitted Point Process Models
plot.ppp

plot a Spatial Point Pattern
rHardcore

Perfect Simulation of the Hardcore Process
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
coef.ppm

Coefficients of Fitted Point Process Model
scan.test

Spatial Scan Test
rshift.splitppp

Randomly Shift a List of Point Patterns
Extract.ppx

Extract Subset of Multidimensional Point Pattern
DiggleGratton

Diggle-Gratton model
colourtools

Convert and Compare Colours in Different Formats
rMosaicSet

Mosaic Random Set
shift.owin

Apply Vector Translation To Window
Poisson

Poisson Point Process Model
convexhull

Convex Hull
Extract.im

Extract Subset of Image
Replace.im

Reset Values in Subset of Image
F3est

Empty Space Function of a Three-Dimensional Point Pattern
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
rThomas

Simulate Thomas Process
rVarGamma

Simulate Neyman-Scott Point Process with Variance Gamma cluster kernel
bdist.tiles

Distance to Boundary of Window
by.ppp

Apply a Function to a Point Pattern Broken Down by Factor
Kcom

Model Compensator of K Function
rpoislpp

Poisson Point Process on a Linear Network
erosion

Morphological Erosion
expand.owin

Apply Expansion Rule
rotate.owin

Rotate a Window
fv.object

Function Value Table
Kmeasure

Reduced Second Moment Measure
fryplot

Fry Plot of Point Pattern
Saturated

Saturated Pairwise Interaction model
Strauss

The Strauss Point Process Model
split.ppx

Divide Multidimensional Point Pattern into Sub-patterns
shapley

Galaxies in the Shapley Supercluster
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
convolve.im

Convolution of Pixel Images
envelope.lpp

Envelope for Point Patterns on Linear Network
incircle

Find Largest Circle Inside Window
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
Kscaled

Locally Scaled K-function
is.marked.ppp

Test Whether A Point Pattern is Marked
affine.ppp

Apply Affine Transformation To Point Pattern
areaLoss

Difference of Disc Areas
is.subset.owin

Determine Whether One Window is Contained In Another
identify.psp

Identify Segments in a Line Segment Pattern
miplot

Morishita Index Plot
area.owin

Area of a Window
mean.im

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

Nearest neighbour distances
opening

Morphological Opening
bdist.points

Distance to Boundary of Window
complement.owin

Take Complement of a Window
border

Border Region of a Window
corners

Corners of a rectangle
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
clarkevans

Clark and Evans Aggregation Index
model.images

Compute Images of Constructed Covariates
convexhull.xy

Convex Hull of Points
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
midpoints.psp

Midpoints of Line Segment Pattern
dirichlet

Dirichlet Tessellation of Point Pattern
ippm

Optimise Irregular Trend Parameters in Point Process Model
pairs.im

Scatterplot Matrix for Pixel Images
plot.psp

plot a Spatial Line Segment Pattern
pairdist.psp

Pairwise distances between line segments
predict.ppm

Prediction from a Fitted Point Process Model
cut.ppp

Classify Points in a Point Pattern
print.ppm

Print a Fitted Point Process Model
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
update.rmhcontrol

Update Control Parameters of Metropolis-Hastings Algorithm
nearest.raster.point

Find Pixel Nearest to a Given Point
Extract.splitppp

Extract or Replace Sub-Patterns
urkiola

Urkiola Woods Point Pattern
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
MultiHard

The Multitype Hard Core Point Process Model
distmap

Distance Map
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
eem

Exponential Energy Marks
Softcore

The Soft Core Point Process Model
plot.influence.ppm

Plot Influence Measure
qqplot.ppm

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

Create a Point Pattern
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
pixellate.ppp

Convert Point Pattern to Pixel Image
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
print.im

Print Brief Details of an Image
rpoispp

Generate Poisson Point Pattern
print.owin

Print Brief Details of a Spatial Window
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
rotate

Rotate
finpines

Pine saplings in Finland.
heather

Diggle's Heather Data
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
as.function.fv

Convert Function Value Table to Function
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
anemones

Beadlet Anemones Data
setcov

Set Covariance of a Window
infline

Infinite Straight Lines
chicago

Chicago Street Crime Data
rthin

Random Thinning
clarkevans.test

Clark and Evans Test
rshift.ppp

Randomly Shift a Point Pattern
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
rDGS

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

Crossing Points in a Line Segment Pattern
shift

Apply Vector Translation
rescale

Convert dataset to another unit of length
residuals.ppm

Residuals for Fitted Point Process Model
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
pixellate.owin

Convert Window to Pixel Image
ord.family

Ord Interaction Process Family
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
rmpoispp

Generate Multitype Poisson Point Pattern
eval.fasp

Evaluate Expression Involving Function Arrays
ewcdf

Weighted Empirical Cumulative Distribution Function
latest.news

Print News About Latest Version of Package
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
kppm

Fit Cluster or Cox Point Process Model
stieltjes

Compute Integral of Function Against Cumulative Distribution
Extract.listof

Extract or Replace Subset of a List of Things
append.psp

Combine Two Line Segment Patterns
rescale.owin

Convert Window to Another Unit of Length
shift.ppp

Apply Vector Translation To Point Pattern
Gdot

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

Spherical Contact Distribution Function
LennardJones

The Lennard-Jones Potential
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
areaGain

Difference of Disc Areas
as.polygonal

Convert a Window to a Polygonal Window
rmhexpand

Specify Simulation Window or Expansion Rule
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
linearK

Linear K Function
rpoint

Generate N Random Points
lpp

Create Point Pattern on Linear Network
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
model.depends

Identify Covariates Involved in each Model Term
shift.psp

Apply Vector Translation To Line Segment Pattern
persp.im

Perspective Plot of Pixel Image
as.box3

Convert Data to Three-Dimensional Box
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
crossdist

Pairwise distances
crossdist.ppp

Pairwise distances between two different point patterns
as.psp

Convert Data To Class psp
data.ppm

Extract Original Data from a Fitted Point Process Model
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
ppx

Multidimensional Space-Time Point Pattern
influence.ppm

Influence Measure for Spatial Point Process Model
smooth.ppp

Spatial smoothing of observations at irregular points
rMatClust

Simulate Matern Cluster Process
rLGCP

Simulate Log-Gaussian Cox Process
inforder.family

Infinite Order Interaction Family
pcf.fv

Pair Correlation Function obtained from K Function
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
is.convex

Test Whether a Window is Convex
methods.lpp

Methods for Point Patterns on a Linear Network
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
methods.pp3

Methods for three-dimensional point patterns
methods.units

Methods for Units
runifpoint3

Generate N Uniform Random Points in Three Dimensions
nsegments

Number of Line Segments in a Line Segment Pattern
linearKinhom

Inhomogeneous Linear K Function
markconnect

Mark Connection Function
logLik.slrm

Loglikelihood of Spatial Logistic Regression
runifpointOnLines

Generate N Uniform Random Points On Line Segments
lurking

Lurking variable plot
scalardilate

Apply Scalar Dilation
simulate.kppm

Simulate a Fitted Cluster Point Process Model
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
runiflpp

Uniform Random Points on a Linear Network
murchison

Murchison gold deposits
pool.fasp

Pool Data from Several Function Arrays
quadratcount

Quadrat counting for a point pattern
pppdist

Distance Between Two Point Patterns
rjitter

Random Perturbation of a Point Pattern
nearestsegment

Find Line Segment Nearest to Each Point
pcf.ppp

Pair Correlation Function of Point Pattern
plot.ppm

plot a Fitted Point Process Model
print.ppp

Print Brief Details of a Point Pattern Dataset
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
rsyst

Simulate systematic random point pattern
runifpoint

Generate N Uniform Random Points
rgbim

Create Colour-Valued Pixel Image
rotate.psp

Rotate a Line Segment Pattern
superimpose

Superimpose Several Geometric Patterns
runifpointx

Generate N Uniform Random Points in Any Dimensions
Emark

Diagnostics for random marking
Jest

Estimate the J-function
Hardcore

The Hard Core Point Process Model
spatstat-package

The Spatstat Package
split.im

Divide Image Into Sub-images
vargamma.estpcf

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

K function of a model
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
spatstat.options

Internal Options in Spatstat Package
with.fv

Evaluate an Expression in a Function Table
tiles

Extract List of Tiles in a Tessellation
smooth.msr

Smooth a Signed or Vector-Valued Measure
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
as.im

Convert to Pixel Image
vargamma.estK

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
zapsmall.im

Rounding of Pixel Values
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
contour.listof

Plot a List of Things
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
BadGey

Hybrid Geyer Point Process Model
affine.owin

Apply Affine Transformation To Window
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
contour.im

Contour plot of pixel image
Fiksel

The Fiksel Interaction
as.hyperframe

Convert Data to Hyperframe
distmap.psp

Distance Map of Line Segment Pattern
eval.fv

Evaluate Expression Involving Functions
bei

Tropical rain forest trees
Gest

Nearest Neighbour Distance Function G
diameter

Diameter of an Object
bramblecanes

Hutchings' Bramble Canes data
is.multitype.ppm

Test Whether A Point Process Model is Multitype
formula.ppm

Model Formulae for Gibbs Point Process Models
spokes

Spokes pattern of dummy points
is.owin

Test Whether An Object Is A Window
sumouter

Compute Quadratic Forms
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
transect.im

Pixel Values Along a Transect
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
Gfox

Foxall's Distance Functions
Gres

Residual G Function
discretise

Safely Convert Point Pattern Window to Binary Mask
exactMPLEstrauss

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
AreaInter

The Area Interaction Point Process Model
connected

Connected components of an image or window
interp.im

Interpolate a Pixel Image
Kmulti

Marked K-Function
Ldot

Multitype L-function (i-to-any)
cut.im

Convert Pixel Image from Numeric to Factor
localKinhom

Inhomogeneous Neighbourhood Density Function
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
crossing.psp

Crossing Points of Two Line Segment Patterns
is.stationary

Recognise Stationary and Poisson Point Process Models
methods.boxx

Methods for Multi-Dimensional Box
distmap.ppp

Distance Map of Point Pattern
Tstat

Third order summary statistic
project2segment

Move Point To Nearest Line
Kres

Residual K Function
raster.x

Cartesian Coordinates for a Pixel Raster
concatxy

Concatenate x,y Coordinate Vectors
bermantest

Berman's Tests for Point Process Model
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
blur

Apply Gaussian Blur to a Pixel Image
compareFit

Residual Diagnostics for Multiple Fitted Models
envelope.envelope

Recompute Envelopes
layered

Create List of Plotting Layers
leverage.ppm

Leverage Measure for Spatial Point Process Model
default.dummy

Generate a Default Pattern of Dummy Points
methods.distfun

Methods for Distance Functions
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
methods.slrm

Methods for Spatial Logistic Regression Models
bounding.box

Bounding Box of a Window or Point Pattern
eroded.areas

Areas of Morphological Erosions
multiplicity.ppp

Count Multiplicity of Duplicate Points
rknn

Theoretical Distribution of Nearest Neighbour Distance
rhohat

Smoothing Estimate of Covariate Transformation
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
nnclean

Nearest Neighbour Clutter Removal
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
nndist.pp3

Nearest neighbour distances in three dimensions
coords

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

Circumradius and Diameter of a Linear Network
runifdisc

Generate N Uniform Random Points in a Disc
shift.im

Apply Vector Translation To Pixel Image
pairdist

Pairwise distances
pixellate

Convert Spatial Object to Pixel Image
fitted.ppm

Fitted Conditional Intensity for Point Process Model
clickpoly

Interactively Define a Polygon
integral.im

Integral of a Pixel Image
disc

Circular Window
plot.envelope

Plot a Simulation Envelope
plot.quad

plot a Spatial Quadrature Scheme
japanesepines

Japanese Pines Point Pattern
plot.plotppm

Plot a plotppm Object Created by plot.ppm
levelset

Level Set of a Pixel Image
quadscheme

Generate a Quadrature Scheme from a Point Pattern
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
localpcf

Local pair correlation function
rStrauss

Perfect Simulation of the Strauss Process
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
scanpp

Read Point Pattern From Data File
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
imcov

Spatial Covariance of a Pixel Image
sharpen

Data Sharpening of Point Pattern
simdat

Simulated Point Pattern
intersect.owin

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

Apply Smoothing to Function Values
is.ppm

Test Whether An Object Is A Fitted Point Process Model
methods.kppm

Methods for Cluster Point Process Models
lineardisc

Compute Disc of Given Radius in Linear Network
rmpoint

Generate N Random Multitype Points
pcfdot

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

Poisson Line Tessellation
plot.colourmap

Plot a Colour Map
profilepl

Profile Maximum Pseudolikelihood
rshift

Random Shift
linim

Create Pixel Image on Linear Network
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
markcorrint

Mark Correlation Integral
nncross

Nearest Neighbours Between Two Patterns
npfun

Dummy Function Returns Number of Points
print.psp

Print Brief Details of a Line Segment Pattern Dataset
allstats

Calculate four standard summary functions of a point pattern.
Lcross.inhom

Inhomogeneous Cross Type L Function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
pairsat.family

Saturated Pairwise Interaction Point Process Family
Lcross

Multitype L-function (cross-type)
as.data.frame.im

Convert Pixel Image to Data Frame
pairwise.family

Pairwise Interaction Process Family
pcfdot.inhom

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

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

Pair Correlation Function obtained from array of K functions
bdist.pixels

Distance to Boundary of Window
plot.pp3

Plot a three-dimensional point pattern
chorley

Chorley-Ribble Cancer Data
centroid.owin

Centroid of a window
clip.infline

Intersect Infinite Straight Lines with a Window
colourmap

Colour Lookup Tables
pool.rat

Pool Data from Several Ratio Objects
plot.splitppp

Plot a List of Point Patterns
pppmatching.object

Class of Point Matchings
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
progressreport

Print Progress Reports
default.expand

Default Expansion Rule for Simulation of Model
distfun

Distance Map as a Function
hamster

Aherne's hamster tumour data
psp.object

Class of Line Segment Patterns
fv

Create a Function Value Table
rGaussPoisson

Simulate Gauss-Poisson Process
redwood

California Redwoods Point Pattern (Ripley's Subset)
reflect

Reflect In Origin
lengths.psp

Lengths of Line Segments
markcorr

Mark Correlation Function
plot.bermantest

Plot Result of Berman Test
pointsOnLines

Place Points Evenly Along Specified Lines
plot.msr

Plot a Signed or Vector-Valued Measure
pp3

Three Dimensional Point Pattern
ppm

Fit Point Process Model to Data
rescale.im

Convert Pixel Image to Another Unit of Length
quad.object

Class of Quadrature Schemes
rlabel

Random Re-Labelling of Point Pattern
rotate.ppp

Rotate a Point Pattern
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
spruces

Spruces Point Pattern
spatstat-internal

Internal spatstat functions
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
Linhom

L-function
tile.areas

Compute Areas of Tiles in a Tessellation
Ord

Generic Ord Interaction model
as.rectangle

Window Frame
bronzefilter

Bronze gradient filter data
collapse.fv

Collapse Several Function Tables into One
summary.owin

Summary of a Spatial Window
compatible.fv

Test Whether Function Objects Are Compatible
Iest

Estimate the I-function
summary.splitppp

Summary of a Split Point Pattern
Kdot

Multitype K Function (i-to-any)
MultiStrauss

The Multitype Strauss Point Process Model
harmonise.im

Make Pixel Images Compatible
lut

Lookup Tables
marktable

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

Signed or Vector-Valued Measure
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
clf.test

Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
lppm

Fit Point Process Model to Point Pattern on Linear Network
hist.im

Histogram of Pixel Values in an Image
print.quad

Print a Quadrature Scheme
pcfinhom

Inhomogeneous Pair Correlation Function
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
quadrat.test

Chi-Squared Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
nnwhich.pp3

Nearest neighbours in three dimensions
perimeter

Perimeter Length of Window
plot.linim

Plot Pixel Image on Linear Network
plot.layered

Layered Plot
pppmatching

Create a Point Matching
rMaternII

Simulate Matern Model II
rMaternI

Simulate Matern Model I
reach

Interaction Distance of a Point Process
rescale.ppp

Convert Point Pattern to Another Unit of Length
predict.lppm

Predict Point Process Model on Linear Network
ripras

Estimate window from points alone
quadratresample

Resample a Point Pattern by Resampling Quadrats
rat

Ratio object
rlinegrid

Generate grid of parallel lines with random displacement
rcell

Simulate Baddeley-Silverman Cell Process
simplify.owin

Approximate a Polygon by a Simpler Polygon
rpoisline

Generate Poisson Random Line Process
summary.ppp

Summary of a Point Pattern Dataset
union.quad

Union of Data and Dummy Points
triplet.family

Triplet Interaction Family
whist

Weighted Histogram
Jcross

Multitype J Function (i-to-j)
Kinhom

Inhomogeneous K-function
affine

Apply Affine Transformation
as.matrix.owin

Convert Pixel Image to Matrix
box3

Three-Dimensional Box
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
by.im

Apply Function to Image Broken Down by Factor
closing

Morphological Closing
dfbetas.ppm

Parameter influence measure
distmap.owin

Distance Map of Window
inside.owin

Test Whether Points Are Inside A Window
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
intersect.tess

Intersection of Two Tessellations
swedishpines

Swedish Pines Point Pattern
is.empty

Test Whether An Object Is Empty
owin

Create a Window
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
Gmulti

Marked Nearest Neighbour Distance Function
plot.hyperframe

Plot Entries in a Hyperframe
Kest.fft

K-function using FFT
ants

Harkness-Isham ants' nests data
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
rStraussHard

Perfect Simulation of the Strauss-Hardcore Process
as.owin

Convert Data To Class owin
quantile.im

Sample Quantiles of Pixel Image
scaletointerval

Rescale Data to Lie Between Specified Limits
as.ppp

Convert Data To Class ppp
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
demopat

Artificial Data Point Pattern
diameter.owin

Diameter of a Window
edges2triangles

List Triangles in a Graph
is.ppp

Test Whether An Object Is A Point Pattern
nnwhich

Nearest neighbour
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
nztrees

New Zealand Trees Point Pattern
plot.leverage.ppm

Plot Leverage Function
plot.tess

Plot a tessellation
ponderosa

Ponderosa Pine Tree Point Pattern
pool.envelope

Pool Data from Several Envelopes
ppp.object

Class of Point Patterns
quadrats

Divide Region into Quadrats
rNeymanScott

Simulate Neyman-Scott Process
plot.linnet

Plot a linear network
reduced.sample

Reduced Sample Estimator using Histogram Data
slrm

Spatial Logistic Regression
update.kppm

Update a Fitted Cluster Point Process Model
varblock

Estimate Variance of Summary Statistic by Subdivision
K3est

K-function of a Three-Dimensional Point Pattern
Extract.quad

Subset of Quadrature Scheme
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
betacells

Beta Ganglion Cells in Cat Retina
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
envelope

Simulation Envelopes of Summary Function
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
is.multitype

Test whether Object is Multitype
hyperframe

Hyper Data Frame
lgcp.estK

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
identify.ppp

Identify Points in a Point Pattern
letterR

Window in Shape of Letter R
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
lohboot

Bootstrap Confidence Bands for Summary Function
nbfires

Point Patterns of New Brunswick Forest Fires
marks.psp

Marks of a Line Segment Pattern
methods.box3

Methods for Three-Dimensional Box
pixelquad

Quadrature Scheme Based on Pixel Grid
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
rPoissonCluster

Simulate Poisson Cluster Process
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
rmh.ppm

Simulate from a Fitted Point Process Model
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
ppm.object

Class of Fitted Point Process Models
spatstat-deprecated

Deprecated spatstat functions
summary.listof

Summary of a List of Things
summary.psp

Summary of a Line Segment Pattern Dataset
Extract.ppp

Extract or Replace Subset of Point Pattern
unnormdensity

Weighted kernel smoother
Extract.psp

Extract Subset of Line Segment Pattern
Fest

Estimate the empty space function F
Gcom

Model Compensator of Nearest Neighbour Function
Kest

K-function
affine.psp

Apply Affine Transformation To Line Segment Pattern
crossdist.psp

Pairwise distances between two different line segment patterns
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
density.psp

Kernel Smoothing of Line Segment Pattern
dilated.areas

Areas of Morphological Dilations
endpoints.psp

Endpoints of Line Segment Pattern
localK

Neighbourhood density function
harmonic

Basis for Harmonic Functions
gridweights

Compute Quadrature Weights Based on Grid Counts
longleaf

Longleaf Pines Point Pattern
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
mincontrast

Method of Minimum Contrast
npoints

Number of Points in a Point Pattern
matchingdist

Distance for a Point Pattern Matching
nndist.psp

Nearest neighbour distances between line segments
pairdist.lpp

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

Plot a Pixel Image
pool

Pool Data
plot.fasp

Plot a Function Array
rescue.rectangle

Convert Window Back To Rectangle
simplenet

Simple Example of Linear Network
model.frame.ppm

Extract the Variables in a Point Process Model
gpc2owin

Convert Polygonal Region into Different Format
pcf

Pair Correlation Function
unique.ppp

Extract Unique Points from a Spatial Point Pattern
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
dilation

Morphological Dilation
psp

Create a Line Segment Pattern
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
suffstat

Sufficient Statistic of Point Process Model
markvario

Mark Variogram
diameter.box3

Geometrical Calculations for Three-Dimensional Box
rSSI

Simulate Simple Sequential Inhibition
discpartarea

Area of Part of Disc
rstrat

Simulate Stratified Random Point Pattern
vertices

Vertices of a Window
bind.fv

Combine Function Value Tables
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
Jdot

Multitype J Function (i-to-any)
gridcentres

Rectangular grid of points
marks

Marks of a Point Pattern
plot.owin

Plot a Spatial Window
rshift.psp

Randomly Shift a Line Segment Pattern