Learn R Programming

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

spatstat (version 1.38-1)

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, space-time point patterns in any number of dimensions, and point patterns on a linear network. Contains about 2000 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, tessellations, and linear networks. Exploratory methods include quadrat counts, K-functions and their simulation envelopes, 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, and kernel estimates of covariate effects. Formal hypothesis tests of random pattern (chi-squared, Kolmogorov-Smirnov, Diggle-Cressie-Loosmore-Ford, Dao-Genton) and tests for covariate effects (Cox-Berman-Waller-Lawson, Kolmogorov-Smirnov) are also supported. Parametric models can be fitted to point pattern data using the functions ppm, kppm, slrm similar to glm. Types of models include Poisson, Gibbs, Cox and cluster point processes. Models may involve dependence on covariates, interpoint interaction, cluster formation and dependence on marks. Models are fitted by maximum likelihood, logistic regression, minimum contrast, and composite likelihood methods. Fitted point process models can be simulated, automatically. Formal hypothesis tests of a fitted model are supported (likelihood ratio test, analysis of deviance, Monte Carlo tests) along with basic tools for model selection (stepwise, AIC). Tools for validating the fitted model include simulation envelopes, residuals, residual plots and Q-Q plots, leverage and influence diagnostics, partial residuals, and added variable plots.

Copy Link

Version

Install

install.packages('spatstat')

Monthly Downloads

17,668

Version

1.38-1

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

August 28th, 2014

Functions in spatstat (1.38-1)

BadGey

Hybrid Geyer Point Process Model
Finhom

Inhomogeneous Empty Space Function
Extract.influence.ppm

Extract Subset of Influence Object
Frame

Extract or Change the Containing Rectangle of a Spatial Object
Emark

Diagnostics for random marking
DiggleGratton

Diggle-Gratton model
Extract.hyperframe

Extract or Replace Subset of Hyperframe
Extract.lpp

Extract Subset of Point Pattern on Linear Network
Extract.msr

Extract Subset of Signed or Vector Measure
AreaInter

The Area Interaction Point Process Model
Extract.psp

Extract Subset of Line Segment Pattern
Fest

Estimate the empty space function F
Extract.ppx

Extract Subset of Multidimensional Point Pattern
Jmulti

Marked J Function
Extract.ppp

Extract or Replace Subset of Point Pattern
G3est

Nearest Neighbour Distance Distribution Function of a Three-Dimensional Point Pattern
Extract.tess

Extract or Replace Subset of Tessellation
Extract.im

Extract Subset of Image
Gcross

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

The Fiksel Interaction
Gest

Nearest Neighbour Distance Function G
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Linhom

L-function
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
Extract.splitppp

Extract or Replace Sub-Patterns
Kres

Residual K Function
Smooth.ppp

Spatial smoothing of observations at irregular points
Extract.quad

Subset of Quadrature Scheme
Kcross

Multitype K Function (Cross-type)
Jcross

Multitype J Function (i-to-j)
Kmodel.kppm

K Function or Pair Correlation Function of Cluster Model or Cox model
Gdot

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

Diggle-Gates-Stibbard Point Process Model
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
Ldot.inhom

Inhomogeneous Multitype L Dot Function
anemones

Beadlet Anemones Data
MultiStrauss

The Multitype Strauss Point Process Model
Kmodel

K Function or Pair Correlation Function of a Point Process Model
StraussHard

The Strauss / Hard Core Point Process Model
as.interact

Extract Interaction Structure
Gmulti

Marked Nearest Neighbour Distance Function
Window

Extract or Change the Window of a Spatial Object
Jdot

Multitype J Function (i-to-any)
Kcross.inhom

Inhomogeneous Cross K Function
Ginhom

Inhomogeneous Nearest Neighbour Function
LennardJones

The Lennard-Jones Potential
bdist.points

Distance to Boundary of Window
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
LambertW

Lambert's W Function
Jest

Estimate the J-function
Poisson

Poisson Point Process Model
beginner

Print Introduction For Beginners
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
Extract.owin

Extract Subset of Window
Geyer

Geyer's Saturation Point Process Model
ants

Harkness-Isham ants' nests data
Gcom

Model Compensator of Nearest Neighbour Function
Pairwise

Generic Pairwise Interaction model
Smooth.msr

Smooth a Signed or Vector-Valued Measure
Gres

Residual G Function
Kcom

Model Compensator of K Function
affine.tess

Apply Geometrical Transformation To Tessellation
Concom

The Connected Component Process Model
Triplets

The Triplet Point Process Model
Extract.layered

Extract Subset of a Layered Object
as.lpp

Convert Data to a Point Pattern on a Linear Network
as.data.frame.im

Convert Pixel Image to Data Frame
area.owin

Area of a Window
allstats

Calculate four standard summary functions of a point pattern.
Ksector

Sector K-function
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
Hardcore

The Hard Core Point Process Model
Smoothfun.ppp

Smooth Interpolation of Marks as a Spatial Function
WindowOnly

Extract Window of Spatial Object
clickjoin

Interactively join vertices on a plot
Kmeasure

Reduced Second Moment Measure
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
MultiStraussHard

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

ANOVA for Fitted Point Process Models
clickppp

Interactively Add Points
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
bind.fv

Combine Function Value Tables
Kest

K-function
Kdot

Multitype K Function (i-to-any)
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
Ldot

Multitype L-function (i-to-any)
affine.ppp

Apply Affine Transformation To Point Pattern
Kmulti

Marked K-Function
Extract.linnet

Extract Subset of Linear Network
Gfox

Foxall's Distance Functions
diameter.box3

Geometrical Calculations for Three-Dimensional Box
Kmodel.ppm

K Function or Pair Correlation Function of Gibbs Point Process model
MultiHard

The Multitype Hard Core Point Process Model
Kmulti.inhom

Inhomogeneous Marked K-Function
Kest.fft

K-function using FFT
Lcross.inhom

Inhomogeneous Cross Type L Function
Lest

L-function
Ord

Generic Ord Interaction model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
as.owin

Convert Data To Class owin
Replace.im

Reset Values in Subset of Image
Saturated

Saturated Pairwise Interaction model
affine

Apply Affine Transformation
boxx

Multi-Dimensional Box
as.rectangle

Window Frame
bw.frac

Bandwidth Selection Based on Window Geometry
amacrine

Hughes' Amacrine Cell Data
bronzefilter

Bronze gradient filter data
Hest

Spherical Contact Distribution Function
as.hyperframe

Convert Data to Hyperframe
Extract.listof

Extract or Replace Subset of a List of Things
box3

Three-Dimensional Box
K3est

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

Extract or Replace Subset of Function Values
Iest

Estimate the I-function
bei

Tropical rain forest trees
as.mask

Pixel Image Approximation of a Window
affine.owin

Apply Affine Transformation To Window
by.ppp

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

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

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
Hybrid

Hybrid Interaction Point Process Model
affine.linnet

Apply Geometrical Transformations to a Linear Network
Tstat

Third order summary statistic
as.tess

Convert Data To Tessellation
affine.psp

Apply Affine Transformation To Line Segment Pattern
bdist.pixels

Distance to Boundary of Window
colourmap

Colour Lookup Tables
disc

Circular Window
blur

Apply Gaussian Blur to a Pixel Image
boundingbox

Bounding Box of a Window, Image, or Point Pattern
diameter.owin

Diameter of a Window
corners

Corners of a rectangle
beachcolours

Create Colour Scheme for a Range of Numbers
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
as.box3

Convert Data to Three-Dimensional Box
cdf.test

Spatial Distribution Test for Point Pattern or Point Process Model
dilation

Morphological Dilation
crossdist.ppp

Pairwise distances between two different point patterns
chorley

Chorley-Ribble Cancer Data
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
compatible.fasp

Test Whether Function Arrays Are Compatible
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
coef.mppm

Coefficients of Point Process Model Fitted to Multiple Point Patterns
affine.lpp

Apply Geometrical Transformations to Point Pattern on a Linear Network
crossdist

Pairwise distances
closepairs

Close Pairs of Points
as.fv

Convert Data To Class fv
contour.listof

Plot a List of Things
berman.test

Berman's Tests for Point Process Model
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
bramblecanes

Hutchings' Bramble Canes data
areaGain

Difference of Disc Areas
colourtools

Convert and Compare Colours in Different Formats
centroid.owin

Centroid of a window
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
crossdist.psp

Pairwise distances between two different line segment patterns
distfun

Distance Map as a Function
add.texture

Fill Plot With Texture
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
chicago

Chicago Street Crime Data
as.ppp

Convert Data To Class ppp
Smooth

Spatial smoothing of data
connected

Connected components
border

Border Region of a Window
compareFit

Residual Diagnostics for Multiple Fitted Models
as.matrix.owin

Convert Pixel Image to Matrix
dirichlet

Dirichlet Tessellation of Point Pattern
clmfires

Castilla-La Mancha Forest Fires
cells

Biological Cells Point Pattern
concatxy

Concatenate x,y Coordinate Vectors
erosion

Morphological Erosion
Softcore

The Soft Core Point Process Model
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
compatible

Test Whether Objects Are Compatible
Kscaled

Locally Scaled K-function
as.layered

Convert Data To Layered Object
convexhull.xy

Convex Hull of Points
bw.ppl

Likelihood Cross Validation Bandwidth Selection for Kernel Density
effectfun

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

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
coef.ppm

Coefficients of Fitted Point Process Model
complement.owin

Take Complement of a Window
im.object

Class of Images
contour.im

Contour plot of pixel image
clip.infline

Intersect Infinite Straight Lines with a Window
delaunay.distance

Distance on Delaunay Triangulation
improve.kppm

Improve Intensity Estimate of Fitted Cluster Point Process Model
gauss.hermite

Gauss-Hermite Quadrature Approximation to Expectation for Normal Distribution
edge.Ripley

Ripley's Isotropic Edge Correction
formula.fv

Extract or Change the Plot Formula for a Function Value Table
is.owin

Test Whether An Object Is A Window
collapse.fv

Collapse Several Function Tables into One
dclf.test

Diggle-Cressie-Loosmore-Ford and Maximum Absolute Deviation Tests
distmap.psp

Distance Map of Line Segment Pattern
angles.psp

Orientation Angles of Line Segments
edges2triangles

List Triangles in a Graph
as.function.fv

Convert Function Value Table to Function
as.matrix.im

Convert Pixel Image to Matrix or Array
connected.ppp

Connected components of a point pattern
cut.ppp

Classify Points in a Point Pattern
as.ppm

Extract Fitted Point Process Model
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
bdist.tiles

Distance to Boundary of Window
as.psp

Convert Data To Class psp
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
closing

Morphological Closing
Jinhom

Inhomogeneous J-function
eroded.areas

Areas of Morphological Erosions
domain

Extract the Domain of any Spatial Object
dfbetas.ppm

Parameter influence measure
crossdist.default

Pairwise distances between two different sets of points
Smooth.fv

Apply Smoothing to Function Values
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
compatible.fv

Test Whether Function Objects Are Compatible
flu

Influenza Virus Proteins
compatible.im

Test Whether Pixel Images Are Compatible
default.dummy

Generate a Default Pattern of Dummy Points
Strauss

The Strauss Point Process Model
intensity.lpp

Empirical Intensity of Point Pattern on Linear Network
Kinhom

Inhomogeneous K-function
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
harmonise.im

Make Pixel Images Compatible
addvar

Added Variable Plot for Point Process Model
is.rectangle

Determine Type of Window
dilated.areas

Areas of Morphological Dilations
eem

Exponential Energy Marks
imcov

Spatial Covariance of a Pixel Image
gorillas

Gorilla Nesting Sites
append.psp

Combine Two Line Segment Patterns
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
is.ppp

Test Whether An Object Is A Point Pattern
incircle

Find Largest Circle Inside Window
longleaf

Longleaf Pines Point Pattern
is.dppm

Recognise Fitted Determinantal Point Process Models
dclf.progress

Progress Plot of Test of Spatial Pattern
envelope.envelope

Recompute Envelopes
eval.fv

Evaluate Expression Involving Functions
data.ppm

Extract Original Data from a Fitted Point Process Model
ellipse

Elliptical Window.
circumradius

Circumradius and Diameter of a Linear Network
OrdThresh

Ord's Interaction model
ippm

Fit Point Process Model Involving Irregular Trend Parameters
integral.im

Integral of a Pixel Image
is.lpp

Test Whether An Object Is A Point Pattern on a Linear Network
clarkevans.test

Clark and Evans Test
is.marked.ppm

Test Whether A Point Process Model is Marked
infline

Infinite Straight Lines
foo

Foo is Not a Variable
formula.ppm

Model Formulae for Gibbs Point Process Models
interp.im

Interpolate a Pixel Image
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
clickbox

Interactively Define a Rectangle
iplot

Point and Click Interface for Displaying Spatial Data
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
localK

Neighbourhood density function
dmixpois

Mixed Poisson Distribution
convolve.im

Convolution of Pixel Images
fv.object

Function Value Table
lansing

Lansing Woods Point Pattern
linearKcross

Multitype K Function (Cross-type) for Linear Point Pattern
integral.msr

Integral of a Measure
model.images

Compute Images of Constructed Covariates
identify.psp

Identify Segments in a Line Segment Pattern
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
matchingdist

Distance for a Point Pattern Matching
linearmarkequal

Mark Connection Function for Multitype Point Pattern on Linear Network
crossdist.lpp

Pairwise distances between two point patterns on a linear network
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
bounding.box.xy

Convex Hull of Points
demopat

Artificial Data Point Pattern
distmap

Distance Map
distmap.ppp

Distance Map of Point Pattern
is.multitype.ppm

Test Whether A Point Process Model is Multitype
cut.im

Convert Pixel Image from Numeric to Factor
default.expand

Default Expansion Rule for Simulation of Model
markcorrint

Mark Correlation Integral
deltametric

Delta Metric
clarkevans

Clark and Evans Aggregation Index
fryplot

Fry Plot of Point Pattern
methods.linnet

Methods for Linear Networks
msr

Signed or Vector-Valued Measure
is.hybrid

Test Whether Object is a Hybrid
betacells

Beta Ganglion Cells in Cat Retina
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
owin

Create a Window
nndensity.ppp

Estimate Intensity of Point Pattern Using Nearest Neighbour Distances
pairdist.default

Pairwise distances
density.ppp

Kernel Smoothed Intensity of Point Pattern
fasp.object

Function Arrays for Spatial Patterns
markstat

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

Methods for Multi-Dimensional Box
linearpcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-type) for Linear Point Pattern
distmap.owin

Distance Map of Window
methods.pp3

Methods for three-dimensional point patterns
intensity

Intensity of a Dataset or a Model
plot.linim

Plot Pixel Image on Linear Network
as.polygonal

Convert a Window to a Polygonal Window
lineardisc

Compute Disc of Given Radius in Linear Network
methods.linfun

Methods for Functions on Linear Network
distfun.lpp

Distance Map on Linear Network
is.marked

Test Whether Marks Are Present
expand.owin

Apply Expansion Rule
cdf.test.mppm

Spatial Distribution Test for Multiple Point Process Model
by.im

Apply Function to Image Broken Down by Factor
is.convex

Test Whether a Window is Convex
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
as.linim

Convert to Pixel Image on Linear Network
linearKinhom

Inhomogeneous Linear K Function
linearK

Linear K Function
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
influence.ppm

Influence Measure for Spatial Point Process Model
edge.Trans

Translation Edge Correction
linim

Create Pixel Image on Linear Network
flipxy

Exchange X and Y Coordinates
discpartarea

Area of Part of Disc
closepairs.pp3

Close Pairs of Points in 3 Dimensions
demohyper

Demonstration Example of Hyperframe of Spatial Data
im.apply

Apply Function Pixelwise to List of Images
lpp

Create Point Pattern on Linear Network
marks.psp

Marks of a Line Segment Pattern
distcdf

Distribution Function of Interpoint Distance
funxy

Spatial Function Class
anova.mppm

ANOVA for Fitted Multiple Point Process Models
methods.fii

Methods for Fitted Interactions
discretise

Safely Convert Point Pattern Window to Binary Mask
crossing.psp

Crossing Points of Two Line Segment Patterns
envelope.lpp

Envelope for Point Patterns on Linear Network
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
deriv.fv

Calculate Derivative of Function Values
ord.family

Ord Interaction Process Family
areaLoss

Difference of Disc Areas
eval.linim

Evaluate Expression Involving Pixel Images on Linear Network
fitted.ppm

Fitted Conditional Intensity for Point Process Model
eval.fasp

Evaluate Expression Involving Function Arrays
logLik.mppm

Log Likelihood for Poisson Point Process Model
diameter

Diameter of an Object
copper

Berman-Huntington points and lines data
localKinhom

Inhomogeneous Neighbourhood Density Function
nncross

Nearest Neighbours Between Two Patterns
layerplotargs

Extract or Replace the Plot Arguments of a Layered Object
model.matrix.ppm

Extract Design Matrix from Point Process Model
linearpcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Dot-type) for Linear Point Pattern
logLik.ppm

Log Likelihood and AIC for Point Process Model
heather

Diggle's Heather Data
methods.units

Methods for Units
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
is.empty

Test Whether An Object Is Empty
inside.owin

Test Whether Points Are Inside A Window
pool.envelope

Pool Data from Several Envelopes
inforder.family

Infinite Order Interaction Family
multiplicity.ppp

Count Multiplicity of Duplicate Points
fv

Create a Function Value Table
idw

Inverse-distance weighted smoothing of observations at irregular points
intersect.tess

Intersection of Two Tessellations
methods.lpp

Methods for Point Patterns on a Linear Network
linearpcfcross

Multitype Pair Correlation Function (Cross-type) for Linear Point Pattern
objsurf

Objective Function Surface
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
density.psp

Kernel Smoothing of Line Segment Pattern
miplot

Morisita Index Plot
pcf.fv

Pair Correlation Function obtained from K Function
fitted.mppm

Fitted Conditional Intensity for Multiple Point Process Model
lurking

Lurking variable plot
finpines

Pine saplings in Finland.
methods.kppm

Methods for Cluster Point Process Models
pcfdot

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

People in Gordon Square
plot.im

Plot a Pixel Image
hybrid.family

Hybrid Interaction Family
opening

Morphological Opening
pairdist

Pairwise distances
nnmap

K-th Nearest Point Map
midpoints.psp

Midpoints of Line Segment Pattern
edges2vees

List Dihedral Triples in a Graph
mppm

Fit Point Process Model to Several Point Patterns
linfun

Function on a Linear Network
is.subset.owin

Determine Whether One Window is Contained In Another
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
harmonic

Basis for Harmonic Functions
harmonise.fv

Make Function Tables Compatible
plot.lppm

Plot a Fitted Point Process Model on a Linear Network
hist.im

Histogram of Pixel Values in an Image
is.multitype.ppp

Test Whether A Point Pattern is Multitype
nndist.pp3

Nearest neighbour distances in three dimensions
moribund

Outdated Functions
envelope

Simulation Envelopes of Summary Function
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
nnwhich.ppx

Nearest Neighbours in Any Dimensions
nbfires

Point Patterns of New Brunswick Forest Fires
intensity.quadratcount

Intensity Estimates Using Quadrat Counts
is.multitype

Test whether Object is Multitype
pixellate

Convert Spatial Object to Pixel Image
markcorr

Mark Correlation Function
fvnames

Abbreviations for Groups of Columns in Function Value Table
endpoints.psp

Endpoints of Line Segment Pattern
plot.envelope

Plot a Simulation Envelope
ppp

Create a Point Pattern
grow.rectangle

Add margins to rectangle
im

Create a Pixel Image Object
plot.mppm

plot a Fitted Multiple Point Process Model
is.marked.ppp

Test Whether A Point Pattern is Marked
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
paracou

Kimboto trees at Paracou, French Guiana
plot.slrm

Plot a Fitted Spatial Logistic Regression
lohboot

Bootstrap Confidence Bands for Summary Function
pool.fasp

Pool Data from Several Function Arrays
methods.box3

Methods for Three-Dimensional Box
plot.ppm

plot a Fitted Point Process Model
plot.ppp

plot a Spatial Point Pattern
plot.splitppp

Plot a List of Point Patterns
kppm

Fit Cluster or Cox Point Process Model
periodify

Make Periodic Copies of a Spatial Pattern
quadratcount

Quadrat counting for a point pattern
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
overlap.owin

Compute Area of Overlap
lgcp.estpcf

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

Divide Region into Quadrats
invoke.symbolmap

Plot Data Using Graphics Symbol Map
rMosaicSet

Mosaic Random Set
ewcdf

Weighted Empirical Cumulative Distribution Function
nnmark

Mark of Nearest Neighbour
nncross.lpp

Nearest Neighbours on a Linear Network
nsegments

Number of Line Segments in a Line Segment Pattern
ppx

Multidimensional Space-Time Point Pattern
nndist.lpp

Nearest neighbour distances on a linear network
is.im

Test Whether An Object Is A Pixel Image
marks

Marks of a Point Pattern
padimage

Pad the Border of a Pixel Image
latest.news

Print News About Latest Version of Package
hyytiala

Scots pines and other trees at Hyytiala
nndist

Nearest neighbour distances
npoints

Number of Points in a Point Pattern
is.ppm

Test Whether An Object Is A Fitted Point Process Model
edges

Extract Boundary Edges of a Window.
quad.object

Class of Quadrature Schemes
pcf.ppp

Pair Correlation Function of Point Pattern
japanesepines

Japanese Pines Point Pattern
linearKdot.inhom

Inhomogeneous multitype K Function (Dot-type) for Linear Point Pattern
quadscheme.logi

Generate a Logistic Regression Quadrature Scheme from a Point Pattern
layered

Create List of Plotting Layers
hamster

Aherne's hamster tumour data
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
clusterset

Allard-Fraley Estimator of Cluster Feature
pairsat.family

Saturated Pairwise Interaction Point Process Family
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
is.stationary

Recognise Stationary and Poisson Point Process Models
hextess

Hexagonal Grid or Tessellation
pairdist.ppp

Pairwise distances
markvario

Mark Variogram
linearpcf

Linear Pair Correlation Function
mincontrast

Method of Minimum Contrast
plot.fv

Plot Function Values
pixelcentres

Extract Pixel Centres as Point Pattern
pairdist.pp3

Pairwise distances in Three Dimensions
pixellate.psp

Convert Line Segment Pattern to Pixel Image
nnwhich

Nearest neighbour
plot.pp3

Plot a three-dimensional point pattern
plot.quadrattest

Display the result of a quadrat counting test.
pcfinhom

Inhomogeneous Pair Correlation Function
quadrat.test

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
plot.linnet

Plot a linear network
localpcf

Local pair correlation function
plot.kppm

Plot a fitted cluster point process
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
pairs.im

Scatterplot Matrix for Pixel Images
quadrat.test.splitppp

Dispersion Test of CSR for Split Point Pattern Based on Quadrat Counts
methods.objsurf

Methods for Objective Function Surfaces
rVarGamma

Simulate Neyman-Scott Point Process with Variance Gamma cluster kernel
pairwise.family

Pairwise Interaction Process Family
print.quad

Print a Quadrature Scheme
leverage.ppm

Leverage Measure for Spatial Point Process Model
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
perimeter

Perimeter Length of Window
pcfdot.inhom

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

Level Set of a Pixel Image
plot.tess

Plot a tessellation
nztrees

New Zealand Trees Point Pattern
model.depends

Identify Covariates Involved in each Model Term
predict.ppm

Prediction from a Fitted Point Process Model
mean.im

Maximum, Minimum, Mean, Median, Range or Sum of Pixel Values in an Image
project.ppm

Force Point Process Model to be Valid
ponderosa

Ponderosa Pine Tree Point Pattern
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
linearKdot

Multitype K Function (Dot-type) for Linear Point Pattern
pcf

Pair Correlation Function
npfun

Dummy Function Returns Number of Points
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
lgcp.estK

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

Print Progress Reports
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
plot.quad

Plot a Spatial Quadrature Scheme
quadscheme

Generate a Quadrature Scheme from a Point Pattern
pppmatching.object

Class of Point Matchings
linnet

Create a Linear Network
predict.lppm

Predict Point Process Model on Linear Network
linearmarkconnect

Mark Connection Function for Multitype Point Pattern on Linear Network
maxnndist

Compute Minimum or Maximum Nearest-Neighbour Distance
project2segment

Move Point To Nearest Line
pool

Pool Data
rGaussPoisson

Simulate Gauss-Poisson Process
hyperframe

Hyper Data Frame
pcfcross

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

Nearest Neighbours Between Two Patterns in 3D
plot.layered

Layered Plot
quadrat.test.mppm

Chi-Squared Test for Multiple Point Process Model Based on Quadrat Counts
quantile.im

Sample Quantiles of Pixel Image
quasirandom

Quasirandom Patterns
linearpcfdot

Multitype Pair Correlation Function (Dot-type) for Linear Point Pattern
rMaternII

Simulate Matern Model II
interp.colourmap

Interpolate smoothly between specified colours
pool.rat

Pool Data from Several Ratio Objects
rMatClust

Simulate Matern Cluster Process
predict.kppm

Prediction from a Fitted Cluster Point Process Model
logLik.slrm

Loglikelihood of Spatial Logistic Regression
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
nearest.raster.point

Find Pixel Nearest to a Given Point
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
panel.contour

Panel Plots using Colour Image or Contour Lines
letterR

Window in Shape of Letter R
mucosa

Cells in Gastric Mucosa
plot.scan.test

Plot Result of Scan Test
rPoissonCluster

Simulate Poisson Cluster Process
persp.im

Perspective Plot of Pixel Image
gridcentres

Rectangular grid of points
qqplot.ppm

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

Print Brief Details of a Point Pattern Dataset
linearKcross.inhom

Inhomogeneous multitype K Function (Cross-type) for Linear Point Pattern
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
intensity.ppm

Intensity of Fitted Point Process Model
methods.slrm

Methods for Spatial Logistic Regression Models
rStrauss

Perfect Simulation of the Strauss Process
plot.texturemap

Plot a Texture Map
pairdist.lpp

Pairwise shortest-path distances between points on a linear network
psp.object

Class of Line Segment Patterns
methods.funxy

Methods for Spatial Functions
markconnect

Mark Connection Function
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
predict.mppm

Prediction for Fitted Multiple Point Process Model
nnwhich.pp3

Nearest neighbours in three dimensions
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
pyramidal

Pyramidal Neurons in Cingulate Cortex
nearestsegment

Find Line Segment Nearest to Each Point
quadratresample

Resample a Point Pattern by Resampling Quadrats
nndist.psp

Nearest neighbour distances between line segments
plot.influence.ppm

Plot Influence Measure
rNeymanScott

Simulate Neyman-Scott Process
psp

Create a Line Segment Pattern
plot.symbolmap

Plot a Graphics Symbol Map
rHardcore

Perfect Simulation of the Hardcore Process
pixellate.ppp

Convert Point Pattern to Pixel Image
intensity.ppp

Empirical Intensity of Point Pattern
gridweights

Compute Quadrature Weights Based on Grid Counts
nnwhich.lpp

Identify Nearest Neighbours on a Linear Network
model.frame.ppm

Extract the Variables in a Point Process Model
pppmatching

Create a Point Matching
owin.object

Class owin
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
plot.psp

plot a Spatial Line Segment Pattern
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
lut

Lookup Tables
parres

Partial Residuals for Point Process Model
plot.listof

Plot a List of Things
pcfmulti

Marked pair correlation function
plot.bermantest

Plot Result of Berman Test
print.owin

Print Brief Details of a Spatial Window
rQuasi

Generate Quasirandom Point Pattern in Given Window
pairdist.ppx

Pairwise Distances in Any Dimensions
murchison

Murchison gold deposits
ppp.object

Class of Point Patterns
plot.msr

Plot a Signed or Vector-Valued Measure
plot.owin

Plot a Spatial Window
plot.quadratcount

Plot Quadrat Counts
pairdist.psp

Pairwise distances between line segments
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
methods.layered

Methods for Layered Objects
print.ppm

Print a Fitted Point Process Model
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
pointsOnLines

Place Points Evenly Along Specified Lines
profilepl

Profile Maximum Pseudolikelihood
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
pcf.fasp

Pair Correlation Function obtained from array of K functions
pixelquad

Quadrature Scheme Based on Pixel Grid
pppdist

Distance Between Two Point Patterns
plot.lpp

Plot Point Pattern on Linear Network
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
pp3

Three Dimensional Point Pattern
print.im

Print Brief Details of an Image
print.psp

Print Brief Details of a Line Segment Pattern Dataset
rLGCP

Simulate Log-Gaussian Cox Process
plot.plotppm

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

Convert Window to Pixel Image
quantile.ewcdf

Quantiles of Weighted Empirical Cumulative Distribution Function
nnfun.lpp

Nearest Neighbour Map on Linear Network
plot.cdftest

Plot a Spatial Distribution Test
ppm.ppp

Fit Point Process Model to Point Pattern Data
rMosaicField

Mosaic Random Field
plot.fasp

Plot a Function Array
rMaternI

Simulate Matern Model I
rStraussHard

Perfect Simulation of the Strauss-Hardcore Process
plot.hyperframe

Plot Entries in a Hyperframe
plot.colourmap

Plot a Colour Map
plot.leverage.ppm

Plot Leverage Function
ppm

Fit Point Process Model to Data
pairorient

Point Pair Orientation Distribution
ppm.object

Class of Fitted Point Process Models
Extract.fasp

Extract Subset of Function Array
Lcross

Multitype L-function (cross-type)
affine.im

Apply Affine Transformation To Pixel Image
as.im

Convert to Pixel Image
Extract.leverage.ppm

Extract Subset of Leverage Object
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
clickpoly

Interactively Define a Polygon
convexhull

Convex Hull
coords

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

Delaunay Triangulation of Point Pattern
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
eval.im

Evaluate Expression Involving Pixel Images
identify.ppp

Identify Points in a Point Pattern
lppm

Fit Point Process Model to Point Pattern on Linear Network
layout.boxes

Generate a Row or Column Arrangement of Rectangles.
model.matrix.slrm

Extract Design Matrix from Spatial Logistic Regression Model
nnclean

Nearest Neighbour Clutter Removal
lengths.psp

Lengths of Line Segments
nnfun

Nearest Neighbour Index Map as a Function
pool.quadrattest

Pool Several Quadrat Tests
rhohat

Smoothing Estimate of Covariate Transformation
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rpoislinetess

Poisson Line Tessellation
reload.or.compute

Compute Unless Previously Saved
rcell

Simulate Baddeley-Silverman Cell Process
run.simplepanel

Run Point-and-Click Interface
sharpen

Data Sharpening of Point Pattern
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
scalardilate

Apply Scalar Dilation
split.im

Divide Image Into Sub-images
tile.areas

Compute Areas of Tiles in a Tessellation
superimpose

Superimpose Several Geometric Patterns
scan.test

Spatial Scan Test
vertices

Vertices of a Window
rmhexpand

Specify Simulation Window or Expansion Rule
runifpoint

Generate N Uniform Random Points
rThomas

Simulate Thomas Process
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
spatialcdf

Spatial Cumulative Distribution Function
redwood

California Redwoods Point Pattern (Ripley's Subset)
rotate.im

Rotate a Pixel Image
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
texturemap

Texture Map
sidelengths.owin

Side Lengths of Enclosing Rectangle of a Window
reflect

Reflect In Origin
rotate.owin

Rotate a Window
rescale.im

Convert Pixel Image to Another Unit of Length
with.fv

Evaluate an Expression in a Function Table
runifpointx

Generate N Uniform Random Points in Any Dimensions
rcellnumber

Generate Random Numbers of Points for Cell Process
residuals.mppm

Residuals for Point Process Model Fitted to Multiple Point Patterns
rescue.rectangle

Convert Window Back To Rectangle
rthin

Random Thinning
rstrat

Simulate Stratified Random Point Pattern
rlabel

Random Re-Labelling of Point Pattern
tilenames

Names of Tiles in a Tessellation
rmpoint

Generate N Random Multitype Points
tess

Create a Tessellation
residuals.ppm

Residuals for Fitted Point Process Model
rotate

Rotate
spokes

Spokes pattern of dummy points
runifpoint3

Generate N Uniform Random Points in Three Dimensions
rmhmodel.list

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

Crossing Points in a Line Segment Pattern
setcov

Set Covariance of a Window
subfits

Extract List of Individual Point Process Models
summary.ppm

Summarizing a Fitted Point Process Model
suffstat

Sufficient Statistic of Point Process Model
valid.ppm

Check Whether Point Process Model is Valid
summary.ppp

Summary of a Point Pattern Dataset
rmpoispp

Generate Multitype Poisson Point Pattern
runifdisc

Generate N Uniform Random Points in a Disc
stratrand

Stratified random point pattern
shift.ppp

Apply Vector Translation To Point Pattern
simplenet

Simple Example of Linear Network
square

Square Window
swedishpines

Swedish Pines Point Pattern
will.expand

Test Expansion Rule
unique.ppp

Extract Unique Points from a Spatial Point Pattern
spatstat-package

The Spatstat Package
simplify.owin

Approximate a Polygon by a Simpler Polygon
sumouter

Compute Quadratic Forms
raster.x

Cartesian Coordinates for a Pixel Raster
range.fv

Range of Function Values
update.ppm

Update a Fitted Point Process Model
varblock

Estimate Variance of Summary Statistic by Subdivision
vargamma.estpcf

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

Summary of a Line Segment Pattern Dataset
rsyst

Simulate systematic random point pattern
unmark

Remove Marks
summary.owin

Summary of a Spatial Window
reach

Interaction Distance of a Point Process
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
rescale.ppp

Convert Point Pattern to Another Unit of Length
reduced.sample

Reduced Sample Estimator using Histogram Data
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
rknn

Theoretical Distribution of Nearest Neighbour Distance
rescale.owin

Convert Window to Another Unit of Length
rmh.ppm

Simulate from a Fitted Point Process Model
timed

Record the Computation Time
rescale

Convert dataset to another unit of length
shift.psp

Apply Vector Translation To Line Segment Pattern
rpoint

Generate N Random Points
rotate.psp

Rotate a Line Segment Pattern
ripras

Estimate window from points alone
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
superimpose.lpp

Superimpose Several Point Patterns on Linear Network
stieltjes

Compute Integral of Function Against Cumulative Distribution
spatstat.options

Internal Options in Spatstat Package
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
spatstat-deprecated

Deprecated spatstat functions
whist

Weighted Histogram
rshift.psp

Randomly Shift a Line Segment Pattern
round.ppp

Apply Numerical Rounding to Spatial Coordinates
summary.im

Summarizing a Pixel Image
symbolmap

Graphics Symbol Map
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
waka

Trees in Waka national park
summary.quad

Summarizing a Quadrature Scheme
runiflpp

Uniform Random Points on a Linear Network
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
shift

Apply Vector Translation
rpoislpp

Poisson Point Process on a Linear Network
spatstat-internal

Internal spatstat functions
vcov.kppm

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

Simulated data from a two-group experiment with replication within each group.
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
rmh.default

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

Randomly Shift a Point Pattern
scaletointerval

Rescale Data to Lie Between Specified Limits
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
rpoispp

Generate Poisson Point Pattern
rat

Ratio object
summary.splitppp

Summary of a Split Point Pattern
runifpointOnLines

Generate N Uniform Random Points On Line Segments
simulate.lppm

Simulate a Fitted Point Process Model on a Linear Network
sessionLibs

Print Names and Version Numbers of Libraries Loaded
split.hyperframe

Divide Hyperframe Into Subsets and Reassemble
summary.listof

Summary of a List of Things
urkiola

Urkiola Woods Point Pattern
sporophores

Sporophores Data
scanpp

Read Point Pattern From Data File
shapley

Galaxies in the Shapley Supercluster
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
vcov.mppm

Calculate Variance-Covariance Matrix for Fitted Multiple Point Process Model
simdat

Simulated Point Pattern
unnormdensity

Weighted kernel smoother
waterstriders

Waterstriders data. Three independent replications of a point pattern formed by insects.
update.kppm

Update a Fitted Cluster Point Process Model
rshift.splitppp

Randomly Shift a List of Point Patterns
rlinegrid

Generate grid of parallel lines with random displacement
tiles

Extract List of Tiles in a Tessellation
subset.ppp

Subset of Point Pattern Satisfying A Condition
vargamma.estK

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

Spatial Logistic Regression
scanLRTS

Likelihood Ratio Test Statistic for Scan Test
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
unitname

Name for Unit of Length
spruces

Spruces Point Pattern
update.symbolmap

Update a Graphics Symbol Map.
rgbim

Create Colour-Valued Pixel Image
split.ppx

Divide Multidimensional Point Pattern into Sub-patterns
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
rotate.ppp

Rotate a Point Pattern
rpoisline

Generate Poisson Random Line Process
trim.rectangle

Cut margins from rectangle
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
union.quad

Union of Data and Dummy Points
rshift

Random Shift
shift.owin

Apply Vector Translation To Window
vcov.slrm

Variance-Covariance Matrix for a Fitted Spatial Logistic Regression
tweak.colourmap

Change Colour Values in a Colour Map
zapsmall.im

Rounding of Pixel Values
rSSI

Simulate Simple Sequential Inhibition
textureplot

Plot Image Using Texture Fill
triplet.family

Triplet Interaction Family
rjitter

Random Perturbation of a Point Pattern
update.rmhcontrol

Update Control Parameters of Metropolis-Hastings Algorithm
simulate.kppm

Simulate a Fitted Cluster Point Process Model
volume

Volume of an Object
rounding

Detect Numerical Rounding
solutionset

Evaluate Logical Expression Involving Pixel Images and Return Region Where Expression is True
shift.im

Apply Vector Translation To Pixel Image
simplepanel

Simple Point-and-Click Interface Panels
split.ppp

Divide Point Pattern into Sub-patterns
transect.im

Pixel Values Along a Transect
residualspaper

Data and Code From JRSS Discussion Paper on Residuals