Learn R Programming

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

spatstat (version 1.28-2)

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-2

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

August 23rd, 2012

Functions in spatstat (1.28-2)

Gfox

Foxall's Distance Functions
box3

Three-Dimensional Box
chorley

Chorley-Ribble Cancer Data
Geyer

Geyer's Saturation Point Process Model
crossdist.default

Pairwise distances between two different sets of points
as.polygonal

Convert a Window to a Polygonal Window
bdist.pixels

Distance to Boundary of Window
as.interact

Extract Interaction Structure
colourmap

Colour Lookup Tables
compatible.im

Test Whether Pixel Images Are Compatible
DiggleGratton

Diggle-Gratton model
crossing.psp

Crossing Points of Two Line Segment Patterns
discpartarea

Area of Part of Disc
Extract.msr

Extract Subset of Signed or Vector Measure
distfun

Distance Map as a Function
concatxy

Concatenate x,y Coordinate Vectors
Lcross.inhom

Inhomogeneous Cross Type L Function
Saturated

Saturated Pairwise Interaction model
edges2triangles

List Triangles in a Graph
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
dfbetas.ppm

Parameter influence measure
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
gridcentres

Rectangular grid of points
is.empty

Test Whether An Object Is Empty
complement.owin

Take Complement of a Window
markcorrint

Mark Correlation Integral
mean.im

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

Fit Cluster or Cox Point Process Model
cut.ppp

Classify Points in a Point Pattern
methods.lpp

Methods for Point Patterns on a Linear Network
distmap

Distance Map
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
hamster

Aherne's hamster tumour data
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
methods.linnet

Methods for Linear Networks
ord.family

Ord Interaction Process Family
idw

Inverse-distance weighted smoothing of observations at irregular points
miplot

Morishita Index Plot
incircle

Find Largest Circle Inside Window
marks

Marks of a Point Pattern
AreaInter

The Area Interaction Point Process Model
pairdist.psp

Pairwise distances between line segments
Extract.ppx

Extract Subset of Multidimensional Point Pattern
Extract.fv

Extract Subset of Function Values
nbfires

Point Patterns of New Brunswick Forest Fires
Gest

Nearest Neighbour Distance Function G
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
Jmulti

Marked J Function
amacrine

Hughes' Amacrine Cell Data
addvar

Added Variable Plot for Point Process Model
levelset

Level Set of a Pixel Image
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
persp.im

Perspective Plot of Pixel Image
plot.quad

plot a Spatial Quadrature Scheme
K3est

K-function of a Three-Dimensional Point Pattern
lineardisc

Compute Disc of Given Radius in Linear Network
nearest.raster.point

Find Pixel Nearest to a Given Point
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
linearKinhom

Inhomogeneous Linear K Function
pairdist

Pairwise distances
methods.pp3

Methods for three-dimensional point patterns
pool

Pool Data
profilepl

Profile Maximum Pseudolikelihood
Ldot.inhom

Inhomogeneous Multitype L Dot Function
quadratresample

Resample a Point Pattern by Resampling Quadrats
predict.ppm

Prediction from a Fitted Point Process Model
nndist.psp

Nearest neighbour distances between line segments
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
bei

Tropical rain forest trees
pcf.fasp

Pair Correlation Function obtained from array of K functions
shift.owin

Apply Vector Translation To Window
append.psp

Combine Two Line Segment Patterns
closing

Morphological Closing
areaLoss

Difference of Disc Areas
smooth.msr

Smooth a Signed or Vector-Valued Measure
contour.listof

Plot a List of Things
split.im

Divide Image Into Sub-images
quad.object

Class of Quadrature Schemes
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
plot.fv

Plot Function Values
methods.units

Methods for Units
pointsOnLines

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

Coerce Hyperframe to Data Frame
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
rmh.ppm

Simulate from a Fitted Point Process Model
Emark

Diagnostics for random marking
pppmatching

Create a Point Matching
Extract.lpp

Extract Subset of Point Pattern on Linear Network
Extract.tess

Extract or Replace Subset of Tessellation
runiflpp

Uniform Random Points on a Linear Network
rotate

Rotate
StraussHard

The Strauss / Hard Core Point Process Model
update.kppm

Update a Fitted Cluster Point Process Model
midpoints.psp

Midpoints of Line Segment Pattern
qqplot.ppm

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

Pseudoscore Diagnostic For Fitted Model against General Alternative
border

Border Region of a Window
boxx

Multi-Dimensional Box
F3est

Empty Space Function of a Three-Dimensional Point Pattern
pixellate

Convert Spatial Object to Pixel Image
pixellate.ppp

Convert Point Pattern to Pixel Image
shapley

Galaxies in the Shapley Supercluster
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
Kmeasure

Reduced Second Moment Measure
chicago

Chicago Street Crime Data
plot.plotppm

Plot a plotppm Object Created by plot.ppm
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
G3est

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

The Multitype Strauss Point Process Model
union.quad

Union of Data and Dummy Points
Kmulti.inhom

Inhomogeneous Marked K-Function
rpoispp

Generate Poisson Point Pattern
default.dummy

Generate a Default Pattern of Dummy Points
runifpointOnLines

Generate N Uniform Random Points On Line Segments
spatstat-package

The Spatstat Package
bdist.points

Distance to Boundary of Window
blur

Apply Gaussian Blur to a Pixel Image
Kmodel

K function of a model
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
crossdist

Pairwise distances
trim.rectangle

Cut margins from rectangle
bramblecanes

Hutchings' Bramble Canes data
markconnect

Mark Connection Function
unique.ppp

Extract Unique Points from a Spatial Point Pattern
linim

Create Pixel Image on Linear Network
LennardJones

The Lennard-Jones Potential
rotate.ppp

Rotate a Point Pattern
bronzefilter

Bronze gradient filter data
dirichlet

Dirichlet Tessellation of Point Pattern
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
dilation

Morphological Dilation
rpoisline

Generate Poisson Random Line Process
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
spatstat-internal

Internal spatstat functions
unnormdensity

Weighted kernel smoother
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
eval.fasp

Evaluate Expression Involving Function Arrays
vargamma.estK

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

Create a Function Value Table
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
clarkevans.test

Clark and Evans Test
colourtools

Convert and Compare Colours in Different Formats
distmap.owin

Distance Map of Window
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
connected

Connected components of an image or window
npoints

Number of Points in a Point Pattern
nnwhich

Nearest neighbour
intensity.ppp

Empirical Intensity of Point Pattern
envelope

Simulation Envelopes of Summary Function
intensity

Intensity of a Dataset or a Model
crossdist.psp

Pairwise distances between two different line segment patterns
pairdist.pp3

Pairwise distances in Three Dimensions
pairdist.ppx

Pairwise Distances in Any Dimensions
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
interp.im

Interpolate a Pixel Image
distmap.ppp

Distance Map of Point Pattern
im.object

Class of Images
nnwhich.ppx

Nearest Neighbours in Any Dimensions
is.multitype.ppm

Test Whether A Point Process Model is Multitype
is.rectangle

Determine Type of Window
leverage.ppm

Leverage Measure for Spatial Point Process Model
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
dilated.areas

Areas of Morphological Dilations
is.ppm

Test Whether An Object Is A Fitted Point Process Model
letterR

Window in Shape of Letter R
plot.owin

Plot a Spatial Window
flipxy

Exchange X and Y Coordinates
pcfinhom

Inhomogeneous Pair Correlation Function
localpcf

Local pair correlation function
plot.splitppp

Plot a List of Point Patterns
latest.news

Print News About Latest Version of Package
methods.kppm

Methods for Cluster Point Process Models
ppm

Fit Point Process Model to Data
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
Fest

Estimate the empty space function F
rGaussPoisson

Simulate Gauss-Poisson Process
Jest

Estimate the J-function
Kscaled

Locally Scaled K-function
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
pairs.im

Scatterplot Matrix for Pixel Images
gorillas

Gorilla Nesting Sites
nnclean

Nearest Neighbour Clutter Removal
plot.linim

Plot Pixel Image on Linear Network
slrm

Spatial Logistic Regression
as.im

Convert to Pixel Image
psp.object

Class of Line Segment Patterns
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
flu

Influenza Virus Proteins
Extract.quad

Subset of Quadrature Scheme
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
japanesepines

Japanese Pines Point Pattern
Iest

Estimate the I-function
square

Square Window
rThomas

Simulate Thomas Process
Kest.fft

K-function using FFT
parres

Partial Residuals for Point Process Model
Ldot

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

Specify Simulation Window or Expansion Rule
pixellate.owin

Convert Window to Pixel Image
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
Tstat

Third order summary statistic
Lcross

Multitype L-function (cross-type)
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
as.hyperframe

Convert Data to Hyperframe
bdist.tiles

Distance to Boundary of Window
plot.psp

plot a Spatial Line Segment Pattern
project.ppm

Force Point Process Model to be Valid
model.matrix.ppm

Extract Design Matrix from Point Process Model
bermantest

Berman's Tests for Point Process Model
rthin

Random Thinning
compareFit

Residual Diagnostics for Multiple Fitted Models
cells

Biological Cells Point Pattern
as.mask

Pixel Image Approximation of a Window
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
ppp.object

Class of Point Patterns
rlabel

Random Re-Labelling of Point Pattern
quadrats

Divide Region into Quadrats
smooth.fv

Apply Smoothing to Function Values
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
msr

Signed or Vector-Valued Measure
ppm.object

Class of Fitted Point Process Models
by.im

Apply Function to Image Broken Down by Factor
eem

Exponential Energy Marks
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
suffstat

Sufficient Statistic of Point Process Model
bounding.box.xy

Convex Hull of Points
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
perimeter

Perimeter Length of Window
delaunay

Delaunay Triangulation of Point Pattern
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
exactMPLEstrauss

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
as.matrix.owin

Convert Pixel Image to Matrix
clickpoly

Interactively Define a Polygon
rStraussHard

Perfect Simulation of the Strauss-Hardcore Process
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
formula.ppm

Model Formulae for Gibbs Point Process Models
progressreport

Print Progress Reports
crossdist.ppp

Pairwise distances between two different point patterns
imcov

Spatial Covariance of a Pixel Image
data.ppm

Extract Original Data from a Fitted Point Process Model
infline

Infinite Straight Lines
collapse.fv

Collapse Several Function Tables into One
rpoislinetess

Poisson Line Tessellation
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rmpoint

Generate N Random Multitype Points
fasp.object

Function Arrays for Spatial Patterns
rescale.im

Convert Pixel Image to Another Unit of Length
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
swedishpines

Swedish Pines Point Pattern
intersect.tess

Intersection of Two Tessellations
hist.im

Histogram of Pixel Values in an Image
is.marked.ppm

Test Whether A Point Process Model is Marked
reflect

Reflect In Origin
bounding.box

Bounding Box of a Window or Point Pattern
localKinhom

Inhomogeneous Neighbourhood Density Function
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
logLik.slrm

Loglikelihood of Spatial Logistic Regression
diameter.box3

Geometrical Calculations for Three-Dimensional Box
erosion

Morphological Erosion
is.multitype.ppp

Test Whether A Point Pattern is Multitype
pairdist.ppp

Pairwise distances
print.owin

Print Brief Details of a Spatial Window
lengths.psp

Lengths of Line Segments
eroded.areas

Areas of Morphological Erosions
is.ppp

Test Whether An Object Is A Point Pattern
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
linnet

Create a Linear Network
print.ppm

Print a Fitted Point Process Model
lppm

Fit Point Process Model to Point Pattern on Linear Network
rMosaicField

Mosaic Random Field
sharpen

Data Sharpening of Point Pattern
shift.ppp

Apply Vector Translation To Point Pattern
redwood

California Redwoods Point Pattern (Ripley's Subset)
im

Create a Pixel Image Object
is.subset.owin

Determine Whether One Window is Contained In Another
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
lurking

Lurking variable plot
rstrat

Simulate Stratified Random Point Pattern
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
nndist

Nearest neighbour distances
model.depends

Identify Covariates Involved in each Model Term
pairwise.family

Pairwise Interaction Process Family
vargamma.estpcf

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

Plot Entries in a Hyperframe
simdat

Simulated Point Pattern
plot.slrm

Plot a Fitted Spatial Logistic Regression
scalardilate

Apply Scalar Dilation
shift.im

Apply Vector Translation To Pixel Image
pcf.fv

Pair Correlation Function obtained from K Function
solutionset

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

Create a Line Segment Pattern
spatstat-deprecated

Deprecated spatstat functions
plot.im

Plot a Pixel Image
plot.msr

Plot a Signed or Vector-Valued Measure
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
Jcross

Multitype J Function (i-to-j)
rshift.splitppp

Randomly Shift a List of Point Patterns
Extract.fasp

Extract Subset of Function Array
print.quad

Print a Quadrature Scheme
ponderosa

Ponderosa Pine Tree Point Pattern
rpoislpp

Poisson Point Process on a Linear Network
spokes

Spokes pattern of dummy points
scaletointerval

Rescale Data to Lie Between Specified Limits
Linhom

L-function
Kdot.inhom

Inhomogeneous Multitype K Dot Function
spatstat.options

Internal Options in Spatstat Package
summary.im

Summarizing a Pixel Image
rescale

Convert dataset to another unit of length
Triplets

The Triplet Point Process Model
rshift

Random Shift
summary.owin

Summary of a Spatial Window
rescue.rectangle

Convert Window Back To Rectangle
Replace.im

Reset Values in Subset of Image
superimpose

Superimpose Several Geometric Patterns
affine.owin

Apply Affine Transformation To Window
rotate.owin

Rotate a Window
rescale.owin

Convert Window to Another Unit of Length
shift.psp

Apply Vector Translation To Line Segment Pattern
as.data.frame.im

Convert Pixel Image to Data Frame
as.owin

Convert Data To Class owin
stieltjes

Compute Integral of Function Against Cumulative Distribution
as.function.fv

Convert Function Value Table to Function
as.matrix.im

Convert Pixel Image to Matrix or Array
split.ppx

Divide Multidimensional Point Pattern into Sub-patterns
betacells

Beta Ganglion Cells in Cat Retina
urkiola

Urkiola Woods Point Pattern
corners

Corners of a rectangle
clarkevans

Clark and Evans Aggregation Index
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
demopat

Artificial Data Point Pattern
deltametric

Delta Metric
Extract.ppp

Extract or Replace Subset of Point Pattern
Extract.listof

Extract or Replace Subset of a List of Things
Extract.im

Extract Subset of Image
endpoints.psp

Endpoints of Line Segment Pattern
Gdot

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

Model Compensator of Nearest Neighbour Function
hyperframe

Hyper Data Frame
Gmulti

Marked Nearest Neighbour Distance Function
Kcross.inhom

Inhomogeneous Cross K Function
MultiStraussHard

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

ANOVA for Fitted Point Process Models
MultiHard

The Multitype Hard Core Point Process Model
envelope.envelope

Recompute Envelopes
is.marked.ppp

Test Whether A Point Pattern is Marked
matchingdist

Distance for a Point Pattern Matching
Pairwise

Generic Pairwise Interaction model
circumradius

Circumradius and Diameter of a Linear Network
model.frame.ppm

Extract the Variables in a Point Process Model
cut.im

Convert Pixel Image from Numeric to Factor
nztrees

New Zealand Trees Point Pattern
eval.fv

Evaluate Expression Involving Functions
ants

Harkness-Isham ants' nests data
pairsat.family

Saturated Pairwise Interaction Point Process Family
fitted.ppm

Fitted Conditional Intensity for Point Process Model
area.owin

Area of a Window
as.box3

Convert Data to Three-Dimensional Box
linearK

Linear K Function
as.tess

Convert Data To Tessellation
owin.object

Class owin
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
compatible.fasp

Test Whether Function Arrays Are Compatible
logLik.ppm

Log Likelihood and AIC for Point Process Model
plot.bermantest

Plot Result of Berman Test
owin

Create a Window
plot.kppm

Plot a fitted cluster point process
methods.slrm

Methods for Spatial Logistic Regression Models
predict.lppm

Predict Point Process Model on Linear Network
pixellate.psp

Convert Line Segment Pattern to Pixel Image
convexhull

Convex Hull
density.psp

Kernel Smoothing of Line Segment Pattern
diameter.owin

Diameter of a Window
pp3

Three Dimensional Point Pattern
ewcdf

Weighted Empirical Cumulative Distribution Function
print.im

Print Brief Details of an Image
rMosaicSet

Mosaic Random Set
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
rgbim

Create Colour-Valued Pixel Image
print.ppp

Print Brief Details of a Point Pattern Dataset
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
rlinegrid

Generate grid of parallel lines with random displacement
rescale.ppp

Convert Point Pattern to Another Unit of Length
with.fv

Evaluate an Expression in a Function Table
rotate.psp

Rotate a Line Segment Pattern
influence.ppm

Influence Measure for Spatial Point Process Model
is.multitype

Test whether Object is Multitype
rsyst

Simulate systematic random point pattern
markvario

Mark Variogram
mincontrast

Method of Minimum Contrast
BadGey

Hybrid Geyer Point Process Model
pairdist.default

Pairwise distances
shift

Apply Vector Translation
Fiksel

The Fiksel Interaction
triplet.family

Triplet Interaction Family
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
Hest

Spherical Contact Distribution Function
varblock

Estimate Variance of Summary Statistic by Subdivision
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
pool.rat

Pool Data from Several Ratio Objects
pcfdot

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

Vertices of a Window
ripras

Estimate window from points alone
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
rknn

Theoretical Distribution of Nearest Neighbour Distance
bind.fv

Combine Function Value Tables
volume

Volume of an Object
as.ppp

Convert Data To Class ppp
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
copper

Berman-Huntington points and lines data
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
scan.test

Spatial Scan Test
default.expand

Default Expansion Rule for Simulation of Model
unmark

Remove Marks
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
Lest

L-function
fryplot

Fry Plot of Point Pattern
Ord

Generic Ord Interaction model
Poisson

Poisson Point Process Model
inforder.family

Infinite Order Interaction Family
lohboot

Bootstrap Confidence Bands for Summary Function
plot.fasp

Plot a Function Array
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
pool.envelope

Pool Data from Several Envelopes
affine.im

Apply Affine Transformation To Pixel Image
print.psp

Print Brief Details of a Line Segment Pattern Dataset
affine.ppp

Apply Affine Transformation To Point Pattern
allstats

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

Convert Data To Class psp
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
rNeymanScott

Simulate Neyman-Scott Process
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
compatible

Test Whether Objects Are Compatible
eval.im

Evaluate Expression Involving Pixel Images
residuals.ppm

Residuals for Fitted Point Process Model
rmpoispp

Generate Multitype Poisson Point Pattern
inside.owin

Test Whether Points Are Inside A Window
is.owin

Test Whether An Object Is A Window
tess

Create a Tessellation
localK

Neighbourhood density function
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
murchison

Murchison gold deposits
plot.ppm

plot a Fitted Point Process Model
ppp

Create a Point Pattern
rMatClust

Simulate Matern Cluster Process
rLGCP

Simulate Log-Gaussian Cox Process
rhohat

Smoothing Estimate of Covariate Transformation
rcell

Simulate Baddeley-Silverman Cell Process
runifpoint

Generate N Uniform Random Points
runifpoint3

Generate N Uniform Random Points in Three Dimensions
simplify.owin

Approximate a Polygon by a Simpler Polygon
spruces

Spruces Point Pattern
tiles

Extract List of Tiles in a Tessellation
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
Kest

K-function
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
convexhull.xy

Convex Hull of Points
gpc2owin

Convert Polygonal Region into Different Format
formula.fv

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

Basis for Harmonic Functions
is.stationary

Recognise Stationary and Poisson Point Process Models
longleaf

Longleaf Pines Point Pattern
lut

Lookup Tables
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
methods.distfun

Methods for Distance Functions
mucosa

Cells in Gastric Mucosa
methods.box3

Methods for Three-Dimensional Box
plot.listof

Plot a List of Things
plot.leverage.ppm

Plot Leverage Function
quadrat.test.splitppp

Dispersion Test of CSR for Split Point Pattern Based on Quadrat Counts
quadscheme

Generate a Quadrature Scheme from a Point Pattern
rHardcore

Perfect Simulation of the Hardcore Process
rMaternII

Simulate Matern Model II
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
Extract.splitppp

Extract or Replace Sub-Patterns
scanpp

Read Point Pattern From Data File
simplenet

Simple Example of Linear Network
Kcom

Model Compensator of K Function
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
summary.listof

Summary of a List of Things
Kdot

Multitype K Function (i-to-any)
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
summary.quad

Summarizing a Quadrature Scheme
convolve.im

Convolution of Pixel Images
update.ppm

Update a Fitted Point Process Model
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
envelope.lpp

Envelope for Point Patterns on Linear Network
is.im

Test Whether An Object Is A Pixel Image
ippm

Optimise Irregular Trend Parameters in Point Process Model
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
matclust.estpcf

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

Find Line Segment Nearest to Each Point
npfun

Dummy Function Returns Number of Points
plot.layered

Layered Plot
rSSI

Simulate Simple Sequential Inhibition
smooth.ppp

Spatial smoothing of observations at irregular points
simulate.kppm

Simulate a Fitted Cluster Point Process Model
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
summary.ppp

Summary of a Point Pattern Dataset
sumouter

Compute Quadratic Forms
summary.splitppp

Summary of a Split Point Pattern
zapsmall.im

Rounding of Pixel Values
Extract.psp

Extract Subset of Line Segment Pattern
Gcross

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

Residual G Function
Kinhom

Inhomogeneous K-function
LambertW

Lambert's W Function
Strauss

The Strauss Point Process Model
Softcore

The Soft Core Point Process Model
affine.psp

Apply Affine Transformation To Line Segment Pattern
affine

Apply Affine Transformation
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
finpines

Pine saplings in Finland.
identify.psp

Identify Segments in a Line Segment Pattern
heather

Diggle's Heather Data
lansing

Lansing Woods Point Pattern
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
periodify

Make Periodic Copies of a Spatial Pattern
plot.colourmap

Plot a Colour Map
plot.influence.ppm

Plot Influence Measure
plot.tess

Plot a tessellation
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
rMaternI

Simulate Matern Model I
rat

Ratio object
rmh.default

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

Generate Poisson Point Pattern on Line Segments
runifdisc

Generate N Uniform Random Points in a Disc
anemones

Beadlet Anemones Data
split.ppp

Divide Point Pattern into Sub-patterns
contour.im

Contour plot of pixel image
density.ppp

Kernel Smoothed Intensity of Point Pattern
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
expand.owin

Apply Expansion Rule
harmonise.im

Make Pixel Images Compatible
is.convex

Test Whether a Window is Convex
is.marked

Test Whether Marks Are Present
nsegments

Number of Line Segments in a Line Segment Pattern
pcf.ppp

Pair Correlation Function of Point Pattern
rStrauss

Perfect Simulation of the Strauss Process
ppx

Multidimensional Space-Time Point Pattern
rVarGamma

Simulate Neyman-Scott Point Process with Variance Gamma cluster kernel
raster.x

Cartesian Coordinates for a Pixel Raster
rpoint

Generate N Random Points
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
centroid.owin

Centroid of a window
clickjoin

Interactively join vertices on a plot
clickppp

Interactively Add Points
coef.ppm

Coefficients of Fitted Point Process Model
coords

Extract or Change Coordinates of a Spatial or Spatiotemporal Point Pattern
fv.object

Function Value Table
iplot

Point and Click Interface for Displaying a Point Pattern
layered

Create List of Plotting Layers
lgcp.estK

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
lgcp.estpcf

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

Create Point Pattern on Linear Network
markcorr

Mark Correlation Function
marks.psp

Marks of a Line Segment Pattern
nnwhich.pp3

Nearest neighbours in three dimensions
opening

Morphological Opening
pcfcross

Multitype pair correlation function (cross-type)
pcf

Pair Correlation Function
plot.envelope

Plot a Simulation Envelope
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
rPoissonCluster

Simulate Poisson Cluster Process
rjitter

Random Perturbation of a Point Pattern
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
rshift.ppp

Randomly Shift a Point Pattern
setcov

Set Covariance of a Window
transect.im

Pixel Values Along a Transect
valid.ppm

Check Whether Point Process Model is Valid
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
whist

Weighted Histogram
Kmulti

Marked K-Function
angles.psp

Orientation Angles of Line Segments
areaGain

Difference of Disc Areas
as.rectangle

Window Frame
by.ppp

Apply a Function to a Point Pattern Broken Down by Factor
compatible.fv

Test Whether Function Objects Are Compatible
integral.im

Integral of a Pixel Image
intensity.ppm

Intensity of Fitted Point Process Model
model.images

Compute Images of Constructed Covariates
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
multiplicity.ppp

Count Multiplicity of Duplicate Points
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
pixelquad

Quadrature Scheme Based on Pixel Grid
plot.linnet

Plot a linear network
plot.ppp

plot a Spatial Point Pattern
pppdist

Distance Between Two Point Patterns
quadratcount

Quadrat counting for a point pattern
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
predict.kppm

Prediction from a Fitted Cluster Point Process Model
quantile.im

Sample Quantiles of Pixel Image
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
rshift.psp

Randomly Shift a Line Segment Pattern
summary.ppm

Summarizing a Fitted Point Process Model
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
summary.psp

Summary of a Line Segment Pattern Dataset
tile.areas

Compute Areas of Tiles in a Tessellation
update.rmhcontrol

Update Control Parameters of Metropolis-Hastings Algorithm
Hardcore

The Hard Core Point Process Model
Jdot

Multitype J Function (i-to-any)
Kcross

Multitype K Function (Cross-type)
OrdThresh

Ord's Interaction model
Kres

Residual K Function
clip.infline

Intersect Infinite Straight Lines with a Window
diameter

Diameter of an Object
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
disc

Circular Window
distmap.psp

Distance Map of Line Segment Pattern
discretise

Safely Convert Point Pattern Window to Binary Mask
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
gridweights

Compute Quadrature Weights Based on Grid Counts
identify.ppp

Identify Points in a Point Pattern
linearpcf

Linear Pair Correlation Function
methods.boxx

Methods for Multi-Dimensional Box
nncross

Nearest Neighbours Between Two Patterns
nndist.pp3

Nearest neighbour distances in three dimensions
pairdist.lpp

Pairwise shortest-path distances between points on a linear network
pool.fasp

Pool Data from Several Function Arrays
plot.pp3

Plot a three-dimensional point pattern
pppmatching.object

Class of Point Matchings
project2segment

Move Point To Nearest Line
reach

Interaction Distance of a Point Process
reduced.sample

Reduced Sample Estimator using Histogram Data
runifpointx

Generate N Uniform Random Points in Any Dimensions
selfcrossing.psp

Crossing Points in a Line Segment Pattern
unitname

Name for Unit of Length
will.expand

Test Expansion Rule