Learn R Programming

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

spatstat (version 1.23-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.23-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

July 24th, 2011

Functions in spatstat (1.23-0)

rshift

Random Shift
rpoispp

Generate Poisson Point Pattern
runifpoint3

Generate N Uniform Random Points in Three Dimensions
shapley

Galaxies in the Shapley Supercluster
rthin

Random Thinning
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
stieltjes

Compute Integral of Function Against Cumulative Distribution
shift.owin

Apply Vector Translation To Window
rsyst

Simulate systematic random point pattern
Softcore

The Soft Core Point Process Model
Extract.psp

Extract Subset of Line Segment Pattern
runifdisc

Generate N Uniform Random Points in a Disc
angles.psp

Orientation Angles of Line Segments
bdist.pixels

Distance to Boundary of Window
betacells

Beta Ganglion Cells in Cat Retina
spatstat-internal

Internal spatstat functions
simdat

Simulated Point Pattern
square

Square Window
summary.quad

Summarizing a Quadrature Scheme
urkiola

Urkiola Woods Point Pattern
varblock

Estimate Variance of Summary Statistic by Subdivision
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
whist

Weighted Histogram
runifpointOnLines

Generate N Uniform Random Points On Line Segments
summary.ppp

Summary of a Point Pattern Dataset
area.owin

Area of a Window
AreaInter

The Area Interaction Point Process Model
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
contour.im

Contour plot of pixel image
Gdot

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

Marked J Function
Gest

Nearest Neighbour Distance Function G
rpoint

Generate N Random Points
Jdot

Multitype J Function (i-to-any)
rshift.ppp

Randomly Shift a Point Pattern
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
Jcross

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

Extract Unique Points from a Spatial Point Pattern
compatible.fv

Test Whether Two Function Objects Are Compatible
summary.im

Summarizing a Pixel Image
distmap.owin

Distance Map of Window
kppm

Fit Cluster or Cox Point Process Model
crossing.psp

Crossing Points of Two Line Segment Patterns
simplify.owin

Approximate a Polygon by a Simpler Polygon
spokes

Spokes pattern of dummy points
rpoislpp

Poisson Point Process on a Linear Network
rshift.psp

Randomly Shift a Line Segment Pattern
swedishpines

Swedish Pines Point Pattern
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
setcov

Set Covariance of a Window
summary.owin

Summary of a Spatial Window
rpoislinetess

Poisson Line Tessellation
smooth.msr

Smooth a Signed or Vector-Valued Measure
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
anova.ppm

ANOVA for Fitted Point Process Models
scaletointerval

Rescale Data to Lie Between Specified Limits
longleaf

Longleaf Pines Point Pattern
areaGain

Difference of Disc Areas
Fiksel

The Fiksel Interaction
Poisson

Poisson Point Process Model
MultiHard

The Multitype Hard Core Point Process Model
Kinhom

Inhomogeneous K-function
affine

Apply Affine Transformation
Gfox

Foxall's Distance Functions
tiles

Extract List of Tiles in a Tessellation
box3

Three-Dimensional Box
Extract.splitppp

Extract or Replace Sub-Patterns
shift.ppp

Apply Vector Translation To Point Pattern
complement.owin

Take Complement of a Window
as.polygonal

Convert a Window to a Polygonal Window
smooth.ppp

Spatial smoothing of observations at irregular points
Kmeasure

Reduced Second Moment Measure
Kest

K-function
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
affine.psp

Apply Affine Transformation To Line Segment Pattern
DiggleGratton

Diggle-Gratton model
corners

Corners of a rectangle
Kcross

Multitype K Function (Cross-type)
superimpose

Superimpose Several Geometric Patterns
crossdist.default

Pairwise distances between two different sets of points
as.box3

Convert Data to Three-Dimensional Box
Extract.tess

Extract or Replace Subset of Tessellation
blur

Apply Gaussian Blur to a Pixel Image
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
selfcrossing.psp

Crossing Points in a Line Segment Pattern
dilation

Morphological Dilation
gridcentres

Rectangular grid of points
crossdist.psp

Pairwise distances between two different line segment patterns
Geyer

Geyer's Saturation Point Process Model
LennardJones

The Lennard-Jones Potential
hist.im

Histogram of Pixel Values in an Image
summary.listof

Summary of a List of Things
convexhull.xy

Convex Hull of Points
bounding.box

Bounding Box of a Window or Point Pattern
as.psp

Convert Data To Class psp
update.ppm

Update a Fitted Point Process Model
Kscaled

Locally Scaled K-function
coords

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

The Strauss Point Process Model
msr

Signed or Vector-Valued Measure
density.ppp

Kernel Smoothed Intensity of Point Pattern
ord.family

Ord Interaction Process Family
Linhom

L-function
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
cut.ppp

Classify Points in a Point Pattern
as.interact

Extract Interaction Structure
by.im

Apply Function to Image Broken Down by Factor
summary.psp

Summary of a Line Segment Pattern Dataset
Saturated

Saturated Pairwise Interaction model
dirichlet

Dirichlet Tessellation of Point Pattern
Jest

Estimate the J-function
is.ppm

Test Whether An Object Is A Fitted Point Process Model
plot.pp3

Plot a three-dimensional point pattern
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
pixellate.ppp

Convert Point Pattern to Pixel Image
Extract.fv

Extract Subset of Function Values
allstats

Calculate four standard summary functions of a point pattern.
endpoints.psp

Endpoints of Line Segment Pattern
data.ppm

Extract Original Data from a Fitted Point Process Model
Fest

Estimate the empty space function F
K3est

K-function of a Three-Dimensional Point Pattern
crossdist

Pairwise distances
amacrine

Hughes' Amacrine Cell Data
affine.ppp

Apply Affine Transformation To Point Pattern
disc

Circular Window
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
Kest.fft

K-function using FFT
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
rotate.ppp

Rotate a Point Pattern
expand.owin

Expand Window By Factor
fv.object

Function Value Table
eem

Exponential Energy Marks
marks

Marks of a Point Pattern
diameter.box3

Geometrical Calculations for Three-Dimensional Box
rotate

Rotate
eval.fv

Evaluate Expression Involving Functions
MultiStrauss

The Multitype Strauss Point Process Model
as.im

Convert to Pixel Image
harmonic

Basis for Harmonic Functions
concatxy

Concatenate x,y Coordinate Vectors
mean.im

Maximum, Minimum, Mean, Median, Range or Sum of Pixel Values in an Image
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
intersect.tess

Intersection of Two Tessellations
eval.fasp

Evaluate Expression Involving Function Arrays
hyperframe

Hyper Data Frame
solutionset

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

Multi-Dimensional Box
is.marked.ppm

Test Whether A Point Process Model is Marked
Lest

L-function
bei

Tropical rain forest trees
letterR

Window in Shape of Letter R
ppp

Create a Point Pattern
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
OrdThresh

Ord's Interaction model
cells

Biological Cells Point Pattern
is.ppp

Test Whether An Object Is A Point Pattern
split.ppp

Divide Point Pattern into Sub-patterns
closing

Morphological Closing
is.owin

Test Whether An Object Is A Window
diameter.owin

Diameter of a Window
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
lengths.psp

Lengths of Line Segments
ants

Harkness-Isham ants' nests data
marks.psp

Marks of a Line Segment Pattern
as.matrix.im

Convert Pixel Image to Matrix or Array
model.matrix.ppm

Extract Design Matrix from Point Process Model
japanesepines

Japanese Pines Point Pattern
linearKinhom

Inhomogeneous Linear K Function
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
is.stationary

Recognise Stationary and Poisson Point Process Models
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
spatstat.options

Internal Options in Spatstat Package
runiflpp

Uniform Random Points on a Linear Network
persp.im

Perspective Plot of Pixel Image
bdist.tiles

Distance to Boundary of Window
rotate.owin

Rotate a Window
heather

Diggle's Heather Data
simplenet

Simple Example of Linear Network
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
as.rectangle

Window Frame
distmap

Distance Map
linearK

Linear K Function
perimeter

Perimeter Length of Window
deltametric

Delta Metric
quadratcount

Quadrat counting for a point pattern
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
plot.fv

Plot Function Values
rescale.im

Convert Pixel Image to Another Unit of Length
copper

Berman-Huntington points and lines data
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
clarkevans.test

Clark and Evans Test
plot.msr

Plot a Signed or Vector-Valued Measure
eval.im

Evaluate Expression Involving Pixel Images
rpoisline

Generate Poisson Random Line Process
methods.lpp

Methods for Point Patterns on a Linear Network
coef.ppm

Coefficients of Fitted Point Process Model
union.quad

Union of Data and Dummy Points
crossdist.ppp

Pairwise distances between two different point patterns
bramblecanes

Hutchings' Bramble Canes data
plot.im

Plot a Pixel Image
runifpoint

Generate N Uniform Random Points
nnwhich.pp3

Nearest neighbours in three dimensions
plot.bermantest

Plot Result of Berman Test
erosion

Morphological Erosion
suffstat

Sufficient Statistic of Point Process Model
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
pairdist.psp

Pairwise distances between line segments
im.object

Class of Images
lineardisc

Compute Disc of Given Radius in Linear Network
plot.kppm

Plot a fitted cluster point process
unmark

Remove Marks
plot.linim

Plot Pixel Image on Linear Network
default.dummy

Generate a Default Pattern of Dummy Points
slrm

Spatial Logistic Regression
rcell

Simulate Baddeley-Silverman Cell Process
markconnect

Mark Connection Function
nbfires

Point Patterns of New Brunswick Forest Fires
incircle

Find Largest Circle Inside Window
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
residuals.ppm

Residuals for Fitted Point Process Model
nnwhich

Nearest neighbour
diameter

Diameter of an Object
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
compareFit

Residual Diagnostics for Multiple Fitted Models
model.images

Compute Images of Constructed Covariates
plot.quad

plot a Spatial Quadrature Scheme
plot.listof

Plot a List of Things
inforder.family

Infinite Order Interaction Family
gpc2owin

Convert Polygonal Region into Different Format
pcf.fasp

Pair Correlation Function obtained from array of K functions
Extract.ppp

Extract or Replace Subset of Point Pattern
linim

Create Pixel Image on Linear Network
fv

Create a Function Value Table
vcov.kppm

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

Nearest Neighbours Between Two Patterns
rGaussPoisson

Simulate Gauss-Poisson Process
pairwise.family

Pairwise Interaction Process Family
npoints

Number of Points in a Point Pattern
is.marked.ppp

Test Whether A Point Pattern is Marked
BadGey

Hybrid Geyer Point Process Model
lpp

Create Point Pattern on Linear Network
discretise

Safely Convert Point Pattern Window to Binary Mask
midpoints.psp

Midpoints of Line Segment Pattern
pairs.im

Scatterplot Matrix for Pixel Images
F3est

Empty Space Function of a Three-Dimensional Point Pattern
murchison

Murchison gold deposits
pcfinhom

Inhomogeneous Pair Correlation Function
predict.lppm

Predict Point Process Model on Linear Network
Lcross.inhom

Inhomogeneous Cross Type L Function
linnet

Create a Linear Network
Extract.quad

Subset of Quadrature Scheme
nndist.psp

Nearest neighbour distances between line segments
latest.news

Print News About Latest Version of Package
as.mask

Pixel Image Approximation of a Window
pairdist.default

Pairwise distances
pcf

Pair Correlation Function
rLGCP

Simulate Log-Gaussian Cox Process
progressreport

Print Progress Reports
quadrats

Divide Region into Quadrats
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
logLik.ppm

Log Likelihood and AIC for Point Process Model
rgbim

Create Colour-Valued Pixel Image
methods.kppm

Methods for Cluster Point Process Models
envelope.lpp

Envelope for Point Patterns on Linear Network
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
cut.im

Convert Pixel Image from Numeric to Factor
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
quadratresample

Resample a Point Pattern by Resampling Quadrats
rMosaicField

Mosaic Random Field
plot.fasp

Plot a Function Array
is.convex

Test Whether a Window is Convex
Kcom

Model Compensator of K Function
nndist

Nearest neighbour distances
pcf.ppp

Pair Correlation Function of Point Pattern
bind.fv

Combine Function Value Tables
iplot

Point and Click Interface for Displaying a Point Pattern
rMaternI

Simulate Matern Model I
anemones

Beadlet Anemones Data
pp3

Three Dimensional Point Pattern
rMaternII

Simulate Matern Model II
rescue.rectangle

Convert Window Back To Rectangle
is.im

Test Whether An Object Is A Pixel Image
is.multitype

Test whether Object is Multitype
identify.ppp

Identify Points in a Point Pattern
Pairwise

Generic Pairwise Interaction model
bronzefilter

Bronze gradient filter data
print.quad

Print a Quadrature Scheme
print.ppm

Print a Fitted Point Process Model
pixellate.owin

Convert Window to Pixel Image
rMosaicSet

Mosaic Random Set
pixelquad

Quadrature Scheme Based on Pixel Grid
distfun

Distance Map as a Function
ppm.object

Class of Fitted Point Process Models
raster.x

Cartesian Coordinates for a Pixel Raster
pcfcross

Multitype pair correlation function (cross-type)
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
markvario

Mark Variogram
lgcp.estK

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

Local pair correlation function
clarkevans

Clark and Evans Aggregation Index
pppdist

Distance Between Two Point Patterns
im

Create a Pixel Image Object
psp

Create a Line Segment Pattern
project2segment

Move Point To Nearest Line
rescale.ppp

Convert Point Pattern to Another Unit of Length
periodify

Make Periodic Copies of a Spatial Pattern
ripras

Estimate window from points alone
rSSI

Simulate Simple Sequential Inhibition
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
integral.im

Integral of a Pixel Image
plot.plotppm

Plot a plotppm Object Created by plot.ppm
print.owin

Print Brief Details of a Spatial Window
colourtools

Convert and Compare Colours in Different Formats
rmhcontrol

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

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

Multidimensional Space-Time Point Pattern
bdist.points

Distance to Boundary of Window
nztrees

New Zealand Trees Point Pattern
pppmatching.object

Class of Point Matchings
matchingdist

Distance for a Point Pattern Matching
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
quantile.im

Sample Quantiles of Pixel Image
sharpen

Data Sharpening of Point Pattern
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rThomas

Simulate Thomas Process
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
miplot

Morishita Index Plot
shift.psp

Apply Vector Translation To Line Segment Pattern
unitname

Name for Unit of Length
chorley

Chorley-Ribble Cancer Data
nnclean

Nearest Neighbour Clutter Removal
compatible.fasp

Test Whether Two Function Arrays Are Compatible
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
reach

Interaction Distance of a Point Process
redwood

California Redwoods Point Pattern (Ripley's Subset)
print.ppp

Print Brief Details of a Point Pattern Dataset
delaunay

Delaunay Triangulation of Point Pattern
fryplot

Fry Plot of Point Pattern
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
pairdist

Pairwise distances
rshift.splitppp

Randomly Shift a List of Point Patterns
rknn

Theoretical Distribution of Nearest Neighbour Distance
discpartarea

Area of Part of Disc
methods.linnet

Methods for Linear Networks
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
volume

Volume of an Object
finpines

Pine saplings in Finland.
ppp.object

Class of Point Patterns
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
shift

Apply Vector Translation
shift.im

Apply Vector Translation To Pixel Image
ponderosa

Ponderosa Pine Tree Point Pattern
as.function.fv

Convert Function Value Table to Function
predict.ppm

Prediction from a Fitted Point Process Model
identify.psp

Identify Segments in a Line Segment Pattern
rlinegrid

Generate grid of parallel lines with random displacement
gridweights

Compute Quadrature Weights Based on Grid Counts
pixellate

Convert Spatial Object to Pixel Image
plot.colourmap

Plot a Colour Map
Hest

Spherical Contact Distribution Function
Extract.listof

Extract or Replace Subset of a List of Things
levelset

Level Set of a Pixel Image
pairsat.family

Saturated Pairwise Interaction Point Process Family
is.marked

Test Whether Marks Are Present
Gcom

Model Compensator of Nearest Neighbour Function
plot.linnet

Plot a linear network
spatstat-deprecated

Deprecated spatstat functions
vertices

Vertices of a Window
methods.distfun

Methods for Distance Functions
ppm

Fit Point Process Model to Data
nndist.pp3

Nearest neighbour distances in three dimensions
Kcross.inhom

Inhomogeneous Cross K Function
Gres

Residual G Function
psp.object

Class of Line Segment Patterns
lurking

Lurking variable plot
Kres

Residual K Function
pairdist.ppp

Pairwise distances
plot.splitppp

Plot a List of Point Patterns
pointsOnLines

Place Points Evenly Along Specified Lines
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
spruces

Spruces Point Pattern
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
Kdot.inhom

Inhomogeneous Multitype K Dot Function
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
plot.ppp

plot a Spatial Point Pattern
with.fv

Evaluate an Expression in a Function Table
predict.kppm

Prediction from a Fitted Cluster Point Process Model
smooth.fv

Apply Smoothing to Function Values
quadscheme

Generate a Quadrature Scheme from a Point Pattern
Kdot

Multitype K Function (i-to-any)
clickjoin

Interactively join vertices on a plot
bermantest

Berman's Tests for Point Process Model
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
Gmulti

Marked Nearest Neighbour Distance Function
quadrat.test

Chi-Squared Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
colourmap

Colour Lookup Tables
Ldot.inhom

Inhomogeneous Multitype L Dot Function
StraussHard

The Strauss / Hard Core Point Process Model
clip.infline

Intersect Infinite Straight Lines with a Window
affine.owin

Apply Affine Transformation To Window
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
model.frame.ppm

Extract the Environment of a Point Process Model
circumradius

Circumradius and Diameter of a Linear Network
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
rlabel

Random Re-Labelling of Point Pattern
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
Kmodel

K function of a model
distmap.psp

Distance Map of Line Segment Pattern
as.tess

Convert Data To Tessellation
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
connected

Connected components of an image or window
formula.ppm

Model Formulae for Gibbs Point Process Models
distmap.ppp

Distance Map of Point Pattern
compatible.im

Test Whether Two Pixel Images Are Compatible
default.expand

Compute Expansion Window for Simulation
is.subset.owin

Determine Whether One Window is Contained In Another
eroded.areas

Areas of Morphological Erosions
dilated.areas

Areas of Morphological Dilations
hamster

Aherne's hamster tumour data
infline

Infinite Straight Lines
logLik.slrm

Loglikelihood of Spatial Logistic Regression
fitted.ppm

Fitted Conditional Intensity for Point Process Model
mincontrast

Method of Minimum Contrast
nearestsegment

Find Line Segment Nearest to Each Point
pairdist.lpp

Pairwise shortest-path distances between points on a linear network
methods.boxx

Methods for Multi-Dimensional Box
markcorrint

Mark Correlation Integral
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
pairdist.ppx

Pairwise Distances in Any Dimensions
pcf.fv

Pair Correlation Function obtained from K Function
plot.envelope

Plot a Simulation Envelope
pairdist.pp3

Pairwise distances in Three Dimensions
npfun

Dummy Function Returns Number of Points
rmh.default

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

Plot a Spatial Window
rjitter

Random Perturbation of a Point Pattern
rStrauss

Perfect Simulation of the Strauss Process
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
rescale

Convert dataset to another unit of length
owin.object

Class owin
plot.hyperframe

Plot Entries in a Hyperframe
plot.ppm

plot a Fitted Point Process Model
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
localK

Neighbourhood density function
rMatClust

Simulate Matern Cluster Process
rescale.owin

Convert Window to Another Unit of Length
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
rmh.ppm

Simulate from a Fitted Point Process Model
rmpoispp

Generate Multitype Poisson Point Pattern
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
rstrat

Simulate Stratified Random Point Pattern
scanpp

Read Point Pattern From Data File
summary.ppm

Summarizing a Fitted Point Process Model
update.kppm

Update a Fitted Cluster Point Process Model
trim.rectangle

Cut margins from rectangle
tess

Create a Tessellation
Extract.im

Extract Subset of Image
Lcross

Multitype L-function (cross-type)
Ord

Generic Ord Interaction model
clickpoly

Interactively Define a Polygon
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
interp.im

Interpolate a Pixel Image
is.multitype.ppm

Test Whether A Point Process Model is Multitype
lgcp.estpcf

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

Mark Correlation Function
linearpcf

Linear Pair Correlation Function
nearest.raster.point

Find Pixel Nearest to a Given Point
owin

Create a Window
reduced.sample

Reduced Sample Estimator using Histogram Data
rhohat

Smoothing Estimate of Covariate Transformation
plot.psp

plot a Spatial Line Segment Pattern
rmpoint

Generate N Random Multitype Points
spatstat-package

The Spatstat Package
zapsmall.im

Rounding of Pixel Values
Gcross

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

The Multitype/Hard Core Strauss Point Process Model
Replace.im

Reset Values in Subset of Image
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
bounding.box.xy

Convex Hull of Points
centroid.owin

Centroid of a window
Hardcore

The Hard Core Point Process Model
clickppp

Interactively Add Points
append.psp

Combine Two Line Segment Patterns
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
fasp.object

Function Arrays for Spatial Patterns
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
is.multitype.ppp

Test Whether A Point Pattern is Multitype
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
lansing

Lansing Woods Point Pattern
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
nnwhich.ppx

Nearest Neighbours in Any Dimensions
nsegments

Number of Line Segments in a Line Segment Pattern
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
pppmatching

Create a Point Matching
print.im

Print Brief Details of an Image
profilepl

Profile Maximum Pseudolikelihood
is.empty

Test Whether An Object Is Empty
lppm

Fit Point Process Model to Point Pattern on Linear Network
runifpointx

Generate N Uniform Random Points in Any Dimensions
simulate.kppm

Simulate a Fitted Cluster Point Process Model
split.im

Divide Image Into Sub-images
summary.splitppp

Summary of a Split Point Pattern
Extract.msr

Extract Subset of Signed or Vector Measure
Kmulti

Marked K-Function
Extract.fasp

Extract Subset of Function Array
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
areaLoss

Difference of Disc Areas
as.hyperframe

Convert Data to Hyperframe
as.data.frame.im

Convert Pixel Image to Data Frame
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
as.ppp

Convert Data To Class ppp
border

Border Region of a Window
chicago

Chicago Street Crime Data
ewcdf

Weighted Empirical Cumulative Distribution Function
flu

Influenza Virus Proteins
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
demopat

Artificial Data Point Pattern
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
methods.box3

Methods for Three-Dimensional Box
methods.pp3

Methods for three-dimensional point patterns
multiplicity.ppp

Count Multiplicity of Duplicate Points
opening

Morphological Opening
envelope

Simulation Envelopes of Summary Function
pcfcross.inhom

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

Plot a tessellation
print.psp

Print Brief Details of a Line Segment Pattern Dataset
quad.object

Class of Quadrature Schemes
rNeymanScott

Simulate Neyman-Scott Process
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
as.owin

Convert Data To Class owin
Emark

Diagnostics for random marking
Ldot

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

Estimate the I-function
collapse.fv

Collapse Several Function Tables into One
convexhull

Convex Hull
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
density.psp

Kernel Smoothing of Line Segment Pattern
inside.owin

Test Whether Points Are Inside A Window
plot.slrm

Plot a Fitted Spatial Logistic Regression
pcfdot

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

Nearest-Neighbour Correlation Indices of Marked Point Pattern
pixellate.psp

Convert Line Segment Pattern to Pixel Image
rotate.psp

Rotate a Line Segment Pattern
tile.areas

Compute Areas of Tiles in a Tessellation
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
lut

Lookup Tables