Learn R Programming

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

spatstat (version 1.25-3)

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.25-3

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

February 5th, 2012

Functions in spatstat (1.25-3)

BadGey

Hybrid Geyer Point Process Model
Extract.tess

Extract or Replace Subset of Tessellation
Kmeasure

Reduced Second Moment Measure
Hardcore

The Hard Core Point Process Model
connected

Connected components of an image or window
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
areaLoss

Difference of Disc Areas
Extract.fasp

Extract Subset of Function Array
Extract.psp

Extract Subset of Line Segment Pattern
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Extract.im

Extract Subset of Image
as.mask

Pixel Image Approximation of a Window
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
Kcom

Model Compensator of K Function
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
compatible.im

Test Whether Pixel Images Are Compatible
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
hamster

Aherne's hamster tumour data
Kest.fft

K-function using FFT
Lcross.inhom

Inhomogeneous Cross Type L Function
collapse.fv

Collapse Several Function Tables into One
erosion

Morphological Erosion
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
linim

Create Pixel Image on Linear Network
pcf.fv

Pair Correlation Function obtained from K Function
Gest

Nearest Neighbour Distance Function G
Kres

Residual K Function
hyperframe

Hyper Data Frame
alltypes

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

Marked J Function
Jdot

Multitype J Function (i-to-any)
cut.im

Convert Pixel Image from Numeric to Factor
DiggleGratton

Diggle-Gratton model
Extract.splitppp

Extract or Replace Sub-Patterns
AreaInter

The Area Interaction Point Process Model
StraussHard

The Strauss / Hard Core Point Process Model
dfbetas.ppm

Parameter influence measure
as.function.fv

Convert Function Value Table to Function
rsyst

Simulate systematic random point pattern
bei

Tropical rain forest trees
is.im

Test Whether An Object Is A Pixel Image
methods.pp3

Methods for three-dimensional point patterns
density.ppp

Kernel Smoothed Intensity of Point Pattern
OrdThresh

Ord's Interaction model
nnwhich.pp3

Nearest neighbours in three dimensions
box3

Three-Dimensional Box
as.polygonal

Convert a Window to a Polygonal Window
MultiStrauss

The Multitype Strauss Point Process Model
K3est

K-function of a Three-Dimensional Point Pattern
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
as.tess

Convert Data To Tessellation
bounding.box

Bounding Box of a Window or Point Pattern
Kinhom

Inhomogeneous K-function
demopat

Artificial Data Point Pattern
as.data.frame.im

Convert Pixel Image to Data Frame
Replace.im

Reset Values in Subset of Image
colourtools

Convert and Compare Colours in Different Formats
F3est

Empty Space Function of a Three-Dimensional Point Pattern
finpines

Pine saplings in Finland.
longleaf

Longleaf Pines Point Pattern
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
Extract.listof

Extract or Replace Subset of a List of Things
summary.ppm

Summarizing a Fitted Point Process Model
nncross

Nearest Neighbours Between Two Patterns
contour.im

Contour plot of pixel image
Kest

K-function
edges2triangles

List Triangles in a Graph
pairdist.pp3

Pairwise distances in Three Dimensions
levelset

Level Set of a Pixel Image
Kcross

Multitype K Function (Cross-type)
crossing.psp

Crossing Points of Two Line Segment Patterns
amacrine

Hughes' Amacrine Cell Data
clickpoly

Interactively Define a Polygon
diameter

Diameter of an Object
Jcross

Multitype J Function (i-to-j)
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
ppp.object

Class of Point Patterns
Emark

Diagnostics for random marking
envelope

Simulation Envelopes of Summary Function
Ldot.inhom

Inhomogeneous Multitype L Dot Function
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
plot.influence.ppm

Plot Influence Measure
density.psp

Kernel Smoothing of Line Segment Pattern
affine.owin

Apply Affine Transformation To Window
plot.tess

Plot a tessellation
model.matrix.ppm

Extract Design Matrix from Point Process Model
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
concatxy

Concatenate x,y Coordinate Vectors
Geyer

Geyer's Saturation Point Process Model
clarkevans.test

Clark and Evans Test
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
letterR

Window in Shape of Letter R
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
eval.fasp

Evaluate Expression Involving Function Arrays
as.ppp

Convert Data To Class ppp
Strauss

The Strauss Point Process Model
copper

Berman-Huntington points and lines data
Linhom

L-function
Lcross

Multitype L-function (cross-type)
Gdot

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

Estimate the I-function
npoints

Number of Points in a Point Pattern
Poisson

Poisson Point Process Model
Jest

Estimate the J-function
smooth.ppp

Spatial smoothing of observations at irregular points
deltametric

Delta Metric
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
chorley

Chorley-Ribble Cancer Data
multiplicity.ppp

Count Multiplicity of Duplicate Points
clarkevans

Clark and Evans Aggregation Index
Extract.ppp

Extract or Replace Subset of Point Pattern
angles.psp

Orientation Angles of Line Segments
anemones

Beadlet Anemones Data
boxx

Multi-Dimensional Box
border

Border Region of a Window
Ord

Generic Ord Interaction model
heather

Diggle's Heather Data
colourmap

Colour Lookup Tables
as.hyperframe

Convert Data to Hyperframe
pcfdot

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

Morphological Dilation
circumradius

Circumradius and Diameter of a Linear Network
localpcf

Local pair correlation function
fitted.ppm

Fitted Conditional Intensity for Point Process Model
superimpose

Superimpose Several Geometric Patterns
project2segment

Move Point To Nearest Line
LennardJones

The Lennard-Jones Potential
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
as.matrix.owin

Convert Pixel Image to Matrix
infline

Infinite Straight Lines
flipxy

Exchange X and Y Coordinates
as.owin

Convert Data To Class owin
allstats

Calculate four standard summary functions of a point pattern.
rstrat

Simulate Stratified Random Point Pattern
nnwhich

Nearest neighbour
plot.im

Plot a Pixel Image
fasp.object

Function Arrays for Spatial Patterns
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
by.ppp

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

Safely Convert Point Pattern Window to Binary Mask
lengths.psp

Lengths of Line Segments
rSSI

Simulate Simple Sequential Inhibition
smooth.fv

Apply Smoothing to Function Values
envelope.lpp

Envelope for Point Patterns on Linear Network
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
Tstat

Third order summary statistic
spatstat-internal

Internal spatstat functions
mincontrast

Method of Minimum Contrast
pairdist.default

Pairwise distances
lgcp.estK

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

The Fiksel Interaction
rMatClust

Simulate Matern Cluster Process
area.owin

Area of a Window
with.fv

Evaluate an Expression in a Function Table
lurking

Lurking variable plot
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
pairdist

Pairwise distances
model.frame.ppm

Extract the Environment of a Point Process Model
nearest.raster.point

Find Pixel Nearest to a Given Point
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
by.im

Apply Function to Image Broken Down by Factor
Kmodel

K function of a model
pcf.ppp

Pair Correlation Function of Point Pattern
as.psp

Convert Data To Class psp
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
japanesepines

Japanese Pines Point Pattern
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
iplot

Point and Click Interface for Displaying a Point Pattern
closing

Morphological Closing
inside.owin

Test Whether Points Are Inside A Window
eval.fv

Evaluate Expression Involving Functions
plot.listof

Plot a List of Things
endpoints.psp

Endpoints of Line Segment Pattern
rPoissonCluster

Simulate Poisson Cluster Process
quadscheme

Generate a Quadrature Scheme from a Point Pattern
as.im

Convert to Pixel Image
nearestsegment

Find Line Segment Nearest to Each Point
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
append.psp

Combine Two Line Segment Patterns
envelope.envelope

Recompute Envelopes
flu

Influenza Virus Proteins
markvario

Mark Variogram
runifpoint

Generate N Uniform Random Points
is.convex

Test Whether a Window is Convex
pppdist

Distance Between Two Point Patterns
methods.units

Methods for Units
Extract.fv

Extract Subset of Function Values
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
latest.news

Print News About Latest Version of Package
delaunay

Delaunay Triangulation of Point Pattern
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
bdist.pixels

Distance to Boundary of Window
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
psp.object

Class of Line Segment Patterns
affine.psp

Apply Affine Transformation To Line Segment Pattern
nnclean

Nearest Neighbour Clutter Removal
fv

Create a Function Value Table
is.owin

Test Whether An Object Is A Window
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
data.ppm

Extract Original Data from a Fitted Point Process Model
linearK

Linear K Function
bermantest

Berman's Tests for Point Process Model
is.ppm

Test Whether An Object Is A Fitted Point Process Model
solutionset

Evaluate Logical Expression Involving Pixel Images and Return Region Where Expression is True
bdist.tiles

Distance to Boundary of Window
harmonise.im

Make Pixel Images Compatible
convexhull.xy

Convex Hull of Points
ewcdf

Weighted Empirical Cumulative Distribution Function
pairdist.ppx

Pairwise Distances in Any Dimensions
integral.im

Integral of a Pixel Image
quadrats

Divide Region into Quadrats
pppmatching.object

Class of Point Matchings
affine.ppp

Apply Affine Transformation To Point Pattern
model.images

Compute Images of Constructed Covariates
Extract.msr

Extract Subset of Signed or Vector Measure
spatstat-deprecated

Deprecated spatstat functions
rHardcore

Perfect Simulation of the Hardcore Process
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
complement.owin

Take Complement of a Window
is.marked.ppp

Test Whether A Point Pattern is Marked
periodify

Make Periodic Copies of a Spatial Pattern
progressreport

Print Progress Reports
lpp

Create Point Pattern on Linear Network
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
eem

Exponential Energy Marks
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
murchison

Murchison gold deposits
gridweights

Compute Quadrature Weights Based on Grid Counts
lppm

Fit Point Process Model to Point Pattern on Linear Network
rMaternII

Simulate Matern Model II
scan.test

Spatial Scan Test
coords

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

Distance for a Point Pattern Matching
nndist

Nearest neighbour distances
nztrees

New Zealand Trees Point Pattern
Extract.quad

Subset of Quadrature Scheme
shapley

Galaxies in the Shapley Supercluster
pairwise.family

Pairwise Interaction Process Family
nbfires

Point Patterns of New Brunswick Forest Fires
diameter.box3

Geometrical Calculations for Three-Dimensional Box
simdat

Simulated Point Pattern
methods.boxx

Methods for Multi-Dimensional Box
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
identify.psp

Identify Segments in a Line Segment Pattern
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
pcfcross

Multitype pair correlation function (cross-type)
methods.kppm

Methods for Cluster Point Process Models
matclust.estpcf

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

Neighbourhood density function
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
simplify.owin

Approximate a Polygon by a Simpler Polygon
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
tiles

Extract List of Tiles in a Tessellation
layered

Create List of Plotting Layers
lut

Lookup Tables
dilated.areas

Areas of Morphological Dilations
pcf.fasp

Pair Correlation Function obtained from array of K functions
pcfinhom

Inhomogeneous Pair Correlation Function
pcf

Pair Correlation Function
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
plot.colourmap

Plot a Colour Map
compatible.fv

Test Whether Function Objects Are Compatible
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
pixellate.ppp

Convert Point Pattern to Pixel Image
imcov

Spatial Covariance of a Pixel Image
compareFit

Residual Diagnostics for Multiple Fitted Models
pairs.im

Scatterplot Matrix for Pixel Images
quadrat.test

Chi-Squared Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
pixellate.psp

Convert Line Segment Pattern to Pixel Image
compatible

Test Whether Objects Are Compatible
kppm

Fit Cluster or Cox Point Process Model
compatible.fasp

Test Whether Function Arrays Are Compatible
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
ippm

Optimise Irregular Trend Parameters in Point Process Model
rjitter

Random Perturbation of a Point Pattern
pp3

Three Dimensional Point Pattern
plot.fasp

Plot a Function Array
pixellate.owin

Convert Window to Pixel Image
methods.distfun

Methods for Distance Functions
as.matrix.im

Convert Pixel Image to Matrix or Array
shift.owin

Apply Vector Translation To Window
logLik.slrm

Loglikelihood of Spatial Logistic Regression
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
summary.listof

Summary of a List of Things
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
areaGain

Difference of Disc Areas
is.subset.owin

Determine Whether One Window is Contained In Another
bramblecanes

Hutchings' Bramble Canes data
clip.infline

Intersect Infinite Straight Lines with a Window
gridcentres

Rectangular grid of points
pixellate

Convert Spatial Object to Pixel Image
nndist.pp3

Nearest neighbour distances in three dimensions
vertices

Vertices of a Window
ord.family

Ord Interaction Process Family
plot.layered

Layered Plot
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
rotate.psp

Rotate a Line Segment Pattern
union.quad

Union of Data and Dummy Points
rshift.splitppp

Randomly Shift a List of Point Patterns
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
runiflpp

Uniform Random Points on a Linear Network
corners

Corners of a rectangle
rknn

Theoretical Distribution of Nearest Neighbour Distance
whist

Weighted Histogram
default.dummy

Generate a Default Pattern of Dummy Points
unnormdensity

Weighted kernel smoother
bind.fv

Combine Function Value Tables
quantile.im

Sample Quantiles of Pixel Image
shift.ppp

Apply Vector Translation To Point Pattern
plot.hyperframe

Plot Entries in a Hyperframe
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
pointsOnLines

Place Points Evenly Along Specified Lines
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
rMosaicSet

Mosaic Random Set
plot.envelope

Plot a Simulation Envelope
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
pppmatching

Create a Point Matching
rescale.im

Convert Pixel Image to Another Unit of Length
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
gpc2owin

Convert Polygonal Region into Different Format
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
update.kppm

Update a Fitted Cluster Point Process Model
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
rLGCP

Simulate Log-Gaussian Cox Process
is.stationary

Recognise Stationary and Poisson Point Process Models
predict.ppm

Prediction from a Fitted Point Process Model
distmap.ppp

Distance Map of Point Pattern
rthin

Random Thinning
rpoint

Generate N Random Points
distmap

Distance Map
spatstat.options

Internal Options in Spatstat Package
rhohat

Smoothing Estimate of Covariate Transformation
split.im

Divide Image Into Sub-images
reduced.sample

Reduced Sample Estimator using Histogram Data
im.object

Class of Images
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
rat

Ratio object
runifpointx

Generate N Uniform Random Points in Any Dimensions
crossdist.ppp

Pairwise distances between two different point patterns
reach

Interaction Distance of a Point Process
rmh.ppm

Simulate from a Fitted Point Process Model
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
print.im

Print Brief Details of an Image
plot.ppp

plot a Spatial Point Pattern
rcell

Simulate Baddeley-Silverman Cell Process
print.ppp

Print Brief Details of a Point Pattern Dataset
scanpp

Read Point Pattern From Data File
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
summary.psp

Summary of a Line Segment Pattern Dataset
print.ppm

Print a Fitted Point Process Model
summary.im

Summarizing a Pixel Image
fryplot

Fry Plot of Point Pattern
rMosaicField

Mosaic Random Field
disc

Circular Window
intersect.tess

Intersection of Two Tessellations
localKinhom

Inhomogeneous Neighbourhood Density Function
rescale

Convert dataset to another unit of length
ppp

Create a Point Pattern
plot.ppm

plot a Fitted Point Process Model
pool

Pool Data
ripras

Estimate window from points alone
simulate.kppm

Simulate a Fitted Cluster Point Process Model
pixelquad

Quadrature Scheme Based on Pixel Grid
crossdist

Pairwise distances
rpoispp

Generate Poisson Point Pattern
runifpointOnLines

Generate N Uniform Random Points On Line Segments
trim.rectangle

Cut margins from rectangle
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
plot.quad

plot a Spatial Quadrature Scheme
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
rMaternI

Simulate Matern Model I
rescale.owin

Convert Window to Another Unit of Length
volume

Volume of an Object
Softcore

The Soft Core Point Process Model
methods.lpp

Methods for Point Patterns on a Linear Network
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
print.owin

Print Brief Details of a Spatial Window
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
split.ppp

Divide Point Pattern into Sub-patterns
ppm.object

Class of Fitted Point Process Models
is.multitype.ppm

Test Whether A Point Process Model is Multitype
unique.ppp

Extract Unique Points from a Spatial Point Pattern
valid.ppm

Check Whether Point Process Model is Valid
rlinegrid

Generate grid of parallel lines with random displacement
plot.bermantest

Plot Result of Berman Test
profilepl

Profile Maximum Pseudolikelihood
varblock

Estimate Variance of Summary Statistic by Subdivision
scaletointerval

Rescale Data to Lie Between Specified Limits
shift.im

Apply Vector Translation To Pixel Image
lineardisc

Compute Disc of Given Radius in Linear Network
ponderosa

Ponderosa Pine Tree Point Pattern
print.quad

Print a Quadrature Scheme
vargamma.estpcf

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
rshift.psp

Randomly Shift a Line Segment Pattern
plot.msr

Plot a Signed or Vector-Valued Measure
rpoislpp

Poisson Point Process on a Linear Network
linearpcf

Linear Pair Correlation Function
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
summary.ppp

Summary of a Point Pattern Dataset
rNeymanScott

Simulate Neyman-Scott Process
coef.ppm

Coefficients of Fitted Point Process Model
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
slrm

Spatial Logistic Regression
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
Gfox

Foxall's Distance Functions
rpoislinetess

Poisson Line Tessellation
mean.im

Maximum, Minimum, Mean, Median, Range or Sum of Pixel Values in an Image
nnwhich.ppx

Nearest Neighbours in Any Dimensions
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
miplot

Morishita Index Plot
markcorrint

Mark Correlation Integral
incircle

Find Largest Circle Inside Window
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
spokes

Spokes pattern of dummy points
plot.slrm

Plot a Fitted Spatial Logistic Regression
rGaussPoisson

Simulate Gauss-Poisson Process
distfun

Distance Map as a Function
interp.im

Interpolate a Pixel Image
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
Kscaled

Locally Scaled K-function
linnet

Create a Linear Network
nsegments

Number of Line Segments in a Line Segment Pattern
rStrauss

Perfect Simulation of the Strauss Process
summary.splitppp

Summary of a Split Point Pattern
rotate

Rotate
plot.splitppp

Plot a List of Point Patterns
hist.im

Histogram of Pixel Values in an Image
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
triplet.family

Triplet Interaction Family
shift

Apply Vector Translation
marks.psp

Marks of a Line Segment Pattern
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
opening

Morphological Opening
owin.object

Class owin
simplenet

Simple Example of Linear Network
rlabel

Random Re-Labelling of Point Pattern
logLik.ppm

Log Likelihood and AIC for Point Process Model
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
pool.envelope

Pool Data from Several Envelopes
rescale.ppp

Convert Point Pattern to Another Unit of Length
ppx

Multidimensional Space-Time Point Pattern
rmpoint

Generate N Random Multitype Points
rpoisline

Generate Poisson Random Line Process
raster.x

Cartesian Coordinates for a Pixel Raster
spruces

Spruces Point Pattern
quadratcount

Quadrat counting for a point pattern
quadratresample

Resample a Point Pattern by Resampling Quadrats
Hest

Spherical Contact Distribution Function
Gmulti

Marked Nearest Neighbour Distance Function
Ldot

Multitype L-function (i-to-any)
bdist.points

Distance to Boundary of Window
chicago

Chicago Street Crime Data
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
Pairwise

Generic Pairwise Interaction model
Kcross.inhom

Inhomogeneous Cross K Function
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
crossdist.default

Pairwise distances between two different sets of points
anova.ppm

ANOVA for Fitted Point Process Models
MultiHard

The Multitype Hard Core Point Process Model
gorillas

Gorilla Nesting Sites
diameter.owin

Diameter of a Window
Gres

Residual G Function
eroded.areas

Areas of Morphological Erosions
istat

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

Influence Measure for Spatial Point Process Model
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
Fest

Estimate the empty space function F
lansing

Lansing Woods Point Pattern
markcorr

Mark Correlation Function
plot.psp

plot a Spatial Line Segment Pattern
formula.ppm

Model Formulae for Gibbs Point Process Models
expand.owin

Expand Window By Factor
plot.leverage.ppm

Plot Leverage Function
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
plot.pp3

Plot a three-dimensional point pattern
msr

Signed or Vector-Valued Measure
plot.linnet

Plot a linear network
model.depends

Identify Covariates Involved in each Model Term
plot.linim

Plot Pixel Image on Linear Network
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
methods.slrm

Methods for Spatial Logistic Regression Models
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
pairdist.psp

Pairwise distances between line segments
redwood

California Redwoods Point Pattern (Ripley's Subset)
runifdisc

Generate N Uniform Random Points in a Disc
print.psp

Print Brief Details of a Line Segment Pattern Dataset
setcov

Set Covariance of a Window
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
nndist.psp

Nearest neighbour distances between line segments
sharpen

Data Sharpening of Point Pattern
stieltjes

Compute Integral of Function Against Cumulative Distribution
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
pool.rat

Pool Data from Several Ratio Objects
rshift.ppp

Randomly Shift a Point Pattern
im

Create a Pixel Image Object
inforder.family

Infinite Order Interaction Family
pairdist.lpp

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

Name for Unit of Length
tile.areas

Compute Areas of Tiles in a Tessellation
unmark

Remove Marks
rshift

Random Shift
summary.owin

Summary of a Spatial Window
pairsat.family

Saturated Pairwise Interaction Point Process Family
Kdot

Multitype K Function (i-to-any)
bounding.box.xy

Convex Hull of Points
bronzefilter

Bronze gradient filter data
Triplets

The Triplet Point Process Model
cells

Biological Cells Point Pattern
clickppp

Interactively Add Points
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
as.box3

Convert Data to Three-Dimensional Box
harmonic

Basis for Harmonic Functions
crossdist.psp

Pairwise distances between two different line segment patterns
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
methods.linnet

Methods for Linear Networks
pool.fasp

Pool Data from Several Function Arrays
owin

Create a Window
plot.plotppm

Plot a plotppm Object Created by plot.ppm
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
plot.kppm

Plot a fitted cluster point process
persp.im

Perspective Plot of Pixel Image
rVarGamma

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

Pseudoscore Diagnostic For Fitted Model against General Alternative
rotate.owin

Rotate a Window
residuals.ppm

Residuals for Fitted Point Process Model
urkiola

Urkiola Woods Point Pattern
idw

Inverse-distance weighted smoothing of observations at irregular points
suffstat

Sufficient Statistic of Point Process Model
tess

Create a Tessellation
Kmulti

Marked K-Function
as.rectangle

Window Frame
centroid.owin

Centroid of a window
dirichlet

Dirichlet Tessellation of Point Pattern
affine

Apply Affine Transformation
fv.object

Function Value Table
is.marked

Test Whether Marks Are Present
distmap.owin

Distance Map of Window
is.multitype

Test whether Object is Multitype
is.empty

Test Whether An Object Is Empty
linearKinhom

Inhomogeneous Linear K Function
leverage.ppm

Leverage Measure for Spatial Point Process Model
markconnect

Mark Connection Function
plot.fv

Plot Function Values
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
predict.lppm

Predict Point Process Model on Linear Network
predict.kppm

Prediction from a Fitted Cluster Point Process Model
selfcrossing.psp

Crossing Points in a Line Segment Pattern
runifpoint3

Generate N Uniform Random Points in Three Dimensions
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
summary.quad

Summarizing a Quadrature Scheme
project.ppm

Force Point Process Model to be Valid
spatstat-package

The Spatstat Package
zapsmall.im

Rounding of Pixel Values
rescue.rectangle

Convert Window Back To Rectangle
Gcom

Model Compensator of Nearest Neighbour Function
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
blur

Apply Gaussian Blur to a Pixel Image
ants

Harkness-Isham ants' nests data
Lest

L-function
clickjoin

Interactively join vertices on a plot
Saturated

Saturated Pairwise Interaction model
discpartarea

Area of Part of Disc
default.expand

Compute Expansion Window for Simulation
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
midpoints.psp

Midpoints of Line Segment Pattern
is.multitype.ppp

Test Whether A Point Pattern is Multitype
perimeter

Perimeter Length of Window
plot.owin

Plot a Spatial Window
pairdist.ppp

Pairwise distances
ppm

Fit Point Process Model to Data
rotate.ppp

Rotate a Point Pattern
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
psp

Create a Line Segment Pattern
shift.psp

Apply Vector Translation To Line Segment Pattern
swedishpines

Swedish Pines Point Pattern
is.ppp

Test Whether An Object Is A Point Pattern
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
rgbim

Create Colour-Valued Pixel Image
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
update.ppm

Update a Fitted Point Process Model
rmpoispp

Generate Multitype Poisson Point Pattern
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
as.interact

Extract Interaction Structure
marktable

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

Convex Hull
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
methods.box3

Methods for Three-Dimensional Box
identify.ppp

Identify Points in a Point Pattern
lgcp.estpcf

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

Beta Ganglion Cells in Cat Retina
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
sumouter

Compute Quadratic Forms
marks

Marks of a Point Pattern
npfun

Dummy Function Returns Number of Points
rThomas

Simulate Thomas Process
smooth.msr

Smooth a Signed or Vector-Valued Measure
cut.ppp

Classify Points in a Point Pattern
square

Square Window
vargamma.estK

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
distmap.psp

Distance Map of Line Segment Pattern
quad.object

Class of Quadrature Schemes
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
contour.listof

Plot a List of Things
eval.im

Evaluate Expression Involving Pixel Images
is.marked.ppm

Test Whether A Point Process Model is Marked