Learn R Programming

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

spatstat (version 1.25-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.25-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

December 6th, 2011

Functions in spatstat (1.25-0)

Extract.fv

Extract Subset of Function Values
Gdot

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

Diagnostics for random marking
Hardcore

The Hard Core Point Process Model
Extract.im

Extract Subset of Image
Kres

Residual K Function
Fest

Estimate the empty space function F
Extract.quad

Subset of Quadrature Scheme
Hest

Spherical Contact Distribution Function
Jcross

Multitype J Function (i-to-j)
Softcore

The Soft Core Point Process Model
Gcross

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

The Area Interaction Point Process Model
Kmodel

K function of a model
affine

Apply Affine Transformation
Gest

Nearest Neighbour Distance Function G
Extract.msr

Extract Subset of Signed or Vector Measure
as.hyperframe

Convert Data to Hyperframe
allstats

Calculate four standard summary functions of a point pattern.
K3est

K-function of a Three-Dimensional Point Pattern
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
Lcross.inhom

Inhomogeneous Cross Type L Function
Kmulti

Marked K-Function
Gres

Residual G Function
Jmulti

Marked J Function
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
Replace.im

Reset Values in Subset of Image
compatible.im

Test Whether Pixel Images Are Compatible
Saturated

Saturated Pairwise Interaction model
by.ppp

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

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

Estimate the I-function
Kcross.inhom

Inhomogeneous Cross K Function
BadGey

Hybrid Geyer Point Process Model
Extract.splitppp

Extract or Replace Sub-Patterns
complement.owin

Take Complement of a Window
Gmulti

Marked Nearest Neighbour Distance Function
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
Kest

K-function
crossing.psp

Crossing Points of Two Line Segment Patterns
Strauss

The Strauss Point Process Model
compareFit

Residual Diagnostics for Multiple Fitted Models
Jest

Estimate the J-function
eval.fv

Evaluate Expression Involving Functions
as.interact

Extract Interaction Structure
clickjoin

Interactively join vertices on a plot
Kinhom

Inhomogeneous K-function
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
linearpcf

Linear Pair Correlation Function
distmap

Distance Map
fitted.ppm

Fitted Conditional Intensity for Point Process Model
cut.ppp

Classify Points in a Point Pattern
bdist.pixels

Distance to Boundary of Window
Kmeasure

Reduced Second Moment Measure
bdist.points

Distance to Boundary of Window
Ldot.inhom

Inhomogeneous Multitype L Dot Function
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
Pairwise

Generic Pairwise Interaction model
bdist.tiles

Distance to Boundary of Window
chorley

Chorley-Ribble Cancer Data
Ldot

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

Convert Data To Class ppp
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
bramblecanes

Hutchings' Bramble Canes data
MultiStrauss

The Multitype Strauss Point Process Model
convexhull.xy

Convex Hull of Points
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
as.tess

Convert Data To Tessellation
bind.fv

Combine Function Value Tables
Lcross

Multitype L-function (cross-type)
distmap.owin

Distance Map of Window
Lest

L-function
as.mask

Pixel Image Approximation of a Window
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
affine.psp

Apply Affine Transformation To Line Segment Pattern
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
finpines

Pine saplings in Finland.
fv

Create a Function Value Table
ants

Harkness-Isham ants' nests data
as.owin

Convert Data To Class owin
crossdist.psp

Pairwise distances between two different line segment patterns
colourmap

Colour Lookup Tables
influence.ppm

Influence Measure for Spatial Point Process Model
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
discpartarea

Area of Part of Disc
identify.psp

Identify Segments in a Line Segment Pattern
owin

Create a Window
lgcp.estK

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
plot.pp3

Plot a three-dimensional point pattern
crossdist.default

Pairwise distances between two different sets of points
inside.owin

Test Whether Points Are Inside A Window
is.ppp

Test Whether An Object Is A Point Pattern
edges2triangles

List Triangles in a Graph
erosion

Morphological Erosion
blur

Apply Gaussian Blur to a Pixel Image
clip.infline

Intersect Infinite Straight Lines with a Window
bounding.box

Bounding Box of a Window or Point Pattern
interp.im

Interpolate a Pixel Image
endpoints.psp

Endpoints of Line Segment Pattern
amacrine

Hughes' Amacrine Cell Data
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
areaGain

Difference of Disc Areas
compatible.fv

Test Whether Function Objects Are Compatible
as.polygonal

Convert a Window to a Polygonal Window
lppm

Fit Point Process Model to Point Pattern on Linear Network
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
istat

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

Test Whether An Object Is A Fitted Point Process Model
contour.listof

Plot a List of Things
is.multitype

Test whether Object is Multitype
affine.owin

Apply Affine Transformation To Window
dirichlet

Dirichlet Tessellation of Point Pattern
colourtools

Convert and Compare Colours in Different Formats
Poisson

Poisson Point Process Model
by.im

Apply Function to Image Broken Down by Factor
cells

Biological Cells Point Pattern
data.ppm

Extract Original Data from a Fitted Point Process Model
pool.rat

Pool Data from Several Ratio Objects
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
hist.im

Histogram of Pixel Values in an Image
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
envelope.lpp

Envelope for Point Patterns on Linear Network
distfun

Distance Map as a Function
demopat

Artificial Data Point Pattern
pairdist

Pairwise distances
gridweights

Compute Quadrature Weights Based on Grid Counts
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
eval.im

Evaluate Expression Involving Pixel Images
clarkevans

Clark and Evans Aggregation Index
anemones

Beadlet Anemones Data
as.rectangle

Window Frame
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
flipxy

Exchange X and Y Coordinates
circumradius

Circumradius and Diameter of a Linear Network
levelset

Level Set of a Pixel Image
coef.ppm

Coefficients of Fitted Point Process Model
copper

Berman-Huntington points and lines data
formula.ppm

Model Formulae for Gibbs Point Process Models
delaunay

Delaunay Triangulation of Point Pattern
envelope

Simulation Envelopes of Summary Function
incircle

Find Largest Circle Inside Window
eem

Exponential Energy Marks
methods.lpp

Methods for Point Patterns on a Linear Network
longleaf

Longleaf Pines Point Pattern
concatxy

Concatenate x,y Coordinate Vectors
marks

Marks of a Point Pattern
box3

Three-Dimensional Box
compatible.fasp

Test Whether Function Arrays Are Compatible
contour.im

Contour plot of pixel image
ewcdf

Weighted Empirical Cumulative Distribution Function
spatstat-deprecated

Deprecated spatstat functions
fasp.object

Function Arrays for Spatial Patterns
rescue.rectangle

Convert Window Back To Rectangle
hyperframe

Hyper Data Frame
methods.pp3

Methods for three-dimensional point patterns
murchison

Murchison gold deposits
nnclean

Nearest Neighbour Clutter Removal
model.images

Compute Images of Constructed Covariates
is.stationary

Recognise Stationary and Poisson Point Process Models
msr

Signed or Vector-Valued Measure
letterR

Window in Shape of Letter R
nndist

Nearest neighbour distances
nearestsegment

Find Line Segment Nearest to Each Point
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
nearest.raster.point

Find Pixel Nearest to a Given Point
intersect.tess

Intersection of Two Tessellations
chicago

Chicago Street Crime Data
MultiHard

The Multitype Hard Core Point Process Model
crossdist

Pairwise distances
nbfires

Point Patterns of New Brunswick Forest Fires
pairsat.family

Saturated Pairwise Interaction Point Process Family
plot.listof

Plot a List of Things
pairdist.ppx

Pairwise Distances in Any Dimensions
rStrauss

Perfect Simulation of the Strauss Process
harmonic

Basis for Harmonic Functions
opening

Morphological Opening
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
discretise

Safely Convert Point Pattern Window to Binary Mask
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
pairdist.ppp

Pairwise distances
is.owin

Test Whether An Object Is A Window
append.psp

Combine Two Line Segment Patterns
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
eroded.areas

Areas of Morphological Erosions
is.multitype.ppm

Test Whether A Point Process Model is Multitype
eval.fasp

Evaluate Expression Involving Function Arrays
deltametric

Delta Metric
is.empty

Test Whether An Object Is Empty
pcfdot

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

Morphological Dilation
plot.fv

Plot Function Values
border

Border Region of a Window
pixellate

Convert Spatial Object to Pixel Image
lgcp.estpcf

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

Compute Disc of Given Radius in Linear Network
linearKinhom

Inhomogeneous Linear K Function
plot.linim

Plot Pixel Image on Linear Network
rescale.owin

Convert Window to Another Unit of Length
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
rotate.ppp

Rotate a Point Pattern
methods.boxx

Methods for Multi-Dimensional Box
rThomas

Simulate Thomas Process
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
Extract.tess

Extract or Replace Subset of Tessellation
hamster

Aherne's hamster tumour data
sharpen

Data Sharpening of Point Pattern
plot.envelope

Plot a Simulation Envelope
summary.listof

Summary of a List of Things
inforder.family

Infinite Order Interaction Family
Extract.listof

Extract or Replace Subset of a List of Things
affine.ppp

Apply Affine Transformation To Point Pattern
model.depends

Identify Covariates Involved in each Model Term
imcov

Spatial Covariance of a Pixel Image
harmonise.im

Make Pixel Images Compatible
im.object

Class of Images
perimeter

Perimeter Length of Window
bronzefilter

Bronze gradient filter data
pairdist.default

Pairwise distances
iplot

Point and Click Interface for Displaying a Point Pattern
pcf.fv

Pair Correlation Function obtained from K Function
Triplets

The Triplet Point Process Model
as.im

Convert to Pixel Image
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
Tstat

Third order summary statistic
centroid.owin

Centroid of a window
profilepl

Profile Maximum Pseudolikelihood
plot.influence.ppm

Plot Influence Measure
bermantest

Berman's Tests for Point Process Model
betacells

Beta Ganglion Cells in Cat Retina
clickpoly

Interactively Define a Polygon
infline

Infinite Straight Lines
distmap.psp

Distance Map of Line Segment Pattern
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
japanesepines

Japanese Pines Point Pattern
Fiksel

The Fiksel Interaction
ripras

Estimate window from points alone
Kcross

Multitype K Function (Cross-type)
Kdot

Multitype K Function (i-to-any)
plot.tess

Plot a tessellation
rgbim

Create Colour-Valued Pixel Image
km.rs

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

Convert Window to Pixel Image
pcfcross

Multitype pair correlation function (cross-type)
pixelquad

Quadrature Scheme Based on Pixel Grid
methods.units

Methods for Units
plot.quad

plot a Spatial Quadrature Scheme
predict.lppm

Predict Point Process Model on Linear Network
quadscheme

Generate a Quadrature Scheme from a Point Pattern
plot.msr

Plot a Signed or Vector-Valued Measure
plot.splitppp

Plot a List of Point Patterns
rMatClust

Simulate Matern Cluster Process
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
rpoislpp

Poisson Point Process on a Linear Network
rSSI

Simulate Simple Sequential Inhibition
boxx

Multi-Dimensional Box
psp

Create a Line Segment Pattern
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
pppmatching

Create a Point Matching
rpoint

Generate N Random Points
rMosaicSet

Mosaic Random Set
pppmatching.object

Class of Point Matchings
density.psp

Kernel Smoothing of Line Segment Pattern
latest.news

Print News About Latest Version of Package
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
connected

Connected components of an image or window
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
predict.kppm

Prediction from a Fitted Cluster Point Process Model
reach

Interaction Distance of a Point Process
is.im

Test Whether An Object Is A Pixel Image
pppdist

Distance Between Two Point Patterns
plot.layered

Layered Plot
rMaternI

Simulate Matern Model I
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
pairdist.pp3

Pairwise distances in Three Dimensions
plot.fasp

Plot a Function Array
linearK

Linear K Function
expand.owin

Expand Window By Factor
default.expand

Compute Expansion Window for Simulation
plot.kppm

Plot a fitted cluster point process
rlinegrid

Generate grid of parallel lines with random displacement
print.owin

Print Brief Details of a Spatial Window
diameter.box3

Geometrical Calculations for Three-Dimensional Box
is.marked

Test Whether Marks Are Present
logLik.slrm

Loglikelihood of Spatial Logistic Regression
envelope.pp3

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

Print Brief Details of an Image
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
lpp

Create Point Pattern on Linear Network
progressreport

Print Progress Reports
plot.plotppm

Plot a plotppm Object Created by plot.ppm
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
marks.psp

Marks of a Line Segment Pattern
quadrat.test

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

Generate N Uniform Random Points in Any Dimensions
runifpoint

Generate N Uniform Random Points
rNeymanScott

Simulate Neyman-Scott Process
cut.im

Convert Pixel Image from Numeric to Factor
project2segment

Move Point To Nearest Line
distmap.ppp

Distance Map of Point Pattern
plot.linnet

Plot a linear network
idw

Inverse-distance weighted smoothing of observations at irregular points
dilated.areas

Areas of Morphological Dilations
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
model.frame.ppm

Extract the Environment of a Point Process Model
simplenet

Simple Example of Linear Network
matclust.estpcf

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

Simulate systematic random point pattern
ppx

Multidimensional Space-Time Point Pattern
fv.object

Function Value Table
plot.owin

Plot a Spatial Window
rMosaicField

Mosaic Random Field
markcorrint

Mark Correlation Integral
logLik.ppm

Log Likelihood and AIC for Point Process Model
nsegments

Number of Line Segments in a Line Segment Pattern
rmpoint

Generate N Random Multitype Points
ppp.object

Class of Point Patterns
spatstat.options

Internal Options in Spatstat Package
methods.linnet

Methods for Linear Networks
nnwhich.pp3

Nearest neighbours in three dimensions
spruces

Spruces Point Pattern
summary.ppm

Summarizing a Fitted Point Process Model
rmh.default

Simulate Point Process Models using the Metropolis-Hastings Algorithm.
quad.object

Class of Quadrature Schemes
matchingdist

Distance for a Point Pattern Matching
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rcell

Simulate Baddeley-Silverman Cell Process
shift.psp

Apply Vector Translation To Line Segment Pattern
methods.kppm

Methods for Cluster Point Process Models
rpoispp

Generate Poisson Point Pattern
rknn

Theoretical Distribution of Nearest Neighbour Distance
leverage.ppm

Leverage Measure for Spatial Point Process Model
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
model.matrix.ppm

Extract Design Matrix from Point Process Model
markconnect

Mark Connection Function
rstrat

Simulate Stratified Random Point Pattern
swedishpines

Swedish Pines Point Pattern
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
nndist.pp3

Nearest neighbour distances in three dimensions
zapsmall.im

Rounding of Pixel Values
plot.leverage.ppm

Plot Leverage Function
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
rthin

Random Thinning
rshift.splitppp

Randomly Shift a List of Point Patterns
solutionset

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

Rectangular grid of points
Gfox

Foxall's Distance Functions
plot.colourmap

Plot a Colour Map
plot.hyperframe

Plot Entries in a Hyperframe
gpc2owin

Convert Polygonal Region into Different Format
Geyer

Geyer's Saturation Point Process Model
methods.box3

Methods for Three-Dimensional Box
spokes

Spokes pattern of dummy points
pairs.im

Scatterplot Matrix for Pixel Images
linnet

Create a Linear Network
raster.x

Cartesian Coordinates for a Pixel Raster
predict.ppm

Prediction from a Fitted Point Process Model
npfun

Dummy Function Returns Number of Points
split.im

Divide Image Into Sub-images
mean.im

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

Create a Tessellation
layered

Create List of Plotting Layers
shift

Apply Vector Translation
plot.ppp

plot a Spatial Point Pattern
closing

Morphological Closing
linim

Create Pixel Image on Linear Network
pp3

Three Dimensional Point Pattern
StraussHard

The Strauss / Hard Core Point Process Model
pointsOnLines

Place Points Evenly Along Specified Lines
pixellate.ppp

Convert Point Pattern to Pixel Image
nncross

Nearest Neighbours Between Two Patterns
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
pairdist.psp

Pairwise distances between line segments
print.quad

Print a Quadrature Scheme
Ord

Generic Ord Interaction model
sumouter

Compute Quadratic Forms
marktable

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

Vertices of a Window
localpcf

Local pair correlation function
rotate.owin

Rotate a Window
summary.psp

Summary of a Line Segment Pattern Dataset
plot.ppm

plot a Fitted Point Process Model
quantile.im

Sample Quantiles of Pixel Image
whist

Weighted Histogram
ppp

Create a Point Pattern
pool

Pool Data
miplot

Morishita Index Plot
runifpointOnLines

Generate N Uniform Random Points On Line Segments
rGaussPoisson

Simulate Gauss-Poisson Process
print.ppm

Print a Fitted Point Process Model
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
volume

Volume of an Object
slrm

Spatial Logistic Regression
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
summary.splitppp

Summary of a Split Point Pattern
ppm

Fit Point Process Model to Data
suffstat

Sufficient Statistic of Point Process Model
rVarGamma

Simulate Neyman-Scott Point Process with Variance Gamma cluster kernel
vargamma.estK

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
vcov.ppm

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

Q-Q Plot of Residuals from Fitted Point Process Model
plot.bermantest

Plot Result of Berman Test
pairwise.family

Pairwise Interaction Process Family
npoints

Number of Points in a Point Pattern
residuals.ppm

Residuals for Fitted Point Process Model
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
persp.im

Perspective Plot of Pixel Image
localKinhom

Inhomogeneous Neighbourhood Density Function
selfcrossing.psp

Crossing Points in a Line Segment Pattern
vargamma.estpcf

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

Pair Correlation Function
quadrats

Divide Region into Quadrats
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
localK

Neighbourhood density function
reduced.sample

Reduced Sample Estimator using Histogram Data
rmhmodel.list

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

Summary of a Point Pattern Dataset
pcfcross.inhom

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

Spatial Scan Test
unique.ppp

Extract Unique Points from a Spatial Point Pattern
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
shift.im

Apply Vector Translation To Pixel Image
rmhmodel.ppm

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

Pool Data from Several Function Arrays
angles.psp

Orientation Angles of Line Segments
plot.slrm

Plot a Fitted Spatial Logistic Regression
plot.psp

plot a Spatial Line Segment Pattern
summary.quad

Summarizing a Quadrature Scheme
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
rescale.ppp

Convert Point Pattern to Another Unit of Length
Linhom

L-function
rmpoispp

Generate Multitype Poisson Point Pattern
square

Square Window
rotate

Rotate
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
rescale

Convert dataset to another unit of length
as.psp

Convert Data To Class psp
scaletointerval

Rescale Data to Lie Between Specified Limits
rshift.psp

Randomly Shift a Line Segment Pattern
stieltjes

Compute Integral of Function Against Cumulative Distribution
unnormdensity

Weighted kernel smoother
union.quad

Union of Data and Dummy Points
smooth.msr

Smooth a Signed or Vector-Valued Measure
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
ponderosa

Ponderosa Pine Tree Point Pattern
pixellate.psp

Convert Line Segment Pattern to Pixel Image
rshift

Random Shift
varblock

Estimate Variance of Summary Statistic by Subdivision
default.dummy

Generate a Default Pattern of Dummy Points
trim.rectangle

Cut margins from rectangle
unitname

Name for Unit of Length
tiles

Extract List of Tiles in a Tessellation
spatstat-internal

Internal spatstat functions
rmh.ppm

Simulate from a Fitted Point Process Model
simulate.kppm

Simulate a Fitted Cluster Point Process Model
pcf.ppp

Pair Correlation Function of Point Pattern
summary.im

Summarizing a Pixel Image
bounding.box.xy

Convex Hull of Points
Kdot.inhom

Inhomogeneous Multitype K Dot Function
corners

Corners of a rectangle
update.ppm

Update a Fitted Point Process Model
rlabel

Random Re-Labelling of Point Pattern
integral.im

Integral of a Pixel Image
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
update.kppm

Update a Fitted Cluster Point Process Model
collapse.fv

Collapse Several Function Tables into One
rotate.psp

Rotate a Line Segment Pattern
dfbetas.ppm

Parameter influence measure
compatible

Test Whether Objects Are Compatible
with.fv

Evaluate an Expression in a Function Table
crossdist.ppp

Pairwise distances between two different point patterns
vcov.kppm

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

Determine Initial State for Metropolis-Hastings Simulation.
rshift.ppp

Randomly Shift a Point Pattern
runifdisc

Generate N Uniform Random Points in a Disc
runiflpp

Uniform Random Points on a Linear Network
unmark

Remove Marks
disc

Circular Window
im

Create a Pixel Image Object
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
tile.areas

Compute Areas of Tiles in a Tessellation
markcorr

Mark Correlation Function
triplet.family

Triplet Interaction Family
superimpose

Superimpose Several Geometric Patterns
pool.envelope

Pool Data from Several Envelopes
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
pcfinhom

Inhomogeneous Pair Correlation Function
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
rescale.im

Convert Pixel Image to Another Unit of Length
runifpoint3

Generate N Uniform Random Points in Three Dimensions
rpoisline

Generate Poisson Random Line Process
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
diameter

Diameter of an Object
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
DiggleGratton

Diggle-Gratton model
Extract.fasp

Extract Subset of Function Array
Extract.ppp

Extract or Replace Subset of Point Pattern
Kcom

Model Compensator of K Function
Kscaled

Locally Scaled K-function
as.box3

Convert Data to Three-Dimensional Box
as.function.fv

Convert Function Value Table to Function
Extract.psp

Extract Subset of Line Segment Pattern
as.matrix.im

Convert Pixel Image to Matrix or Array
Jdot

Multitype J Function (i-to-any)
heather

Diggle's Heather Data
is.subset.owin

Determine Whether One Window is Contained In Another
LennardJones

The Lennard-Jones Potential
is.convex

Test Whether a Window is Convex
Kest.fft

K-function using FFT
anova.ppm

ANOVA for Fitted Point Process Models
is.marked.ppp

Test Whether A Point Pattern is Marked
markvario

Mark Variogram
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
midpoints.psp

Midpoints of Line Segment Pattern
nndist.psp

Nearest neighbour distances between line segments
area.owin

Area of a Window
as.data.frame.im

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

Coerce Line Segment Pattern to a Data Frame
bei

Tropical rain forest trees
convexhull

Convex Hull
owin.object

Class owin
pcf.fasp

Pair Correlation Function obtained from array of K functions
nnwhich

Nearest neighbour
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
print.ppp

Print Brief Details of a Point Pattern Dataset
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
density.ppp

Kernel Smoothed Intensity of Point Pattern
flu

Influenza Virus Proteins
ippm

Optimise Irregular Trend Parameters in Point Process Model
rat

Ratio object
quadratcount

Quadrat counting for a point pattern
smooth.fv

Apply Smoothing to Function Values
shapley

Galaxies in the Shapley Supercluster
shift.owin

Apply Vector Translation To Window
lansing

Lansing Woods Point Pattern
lengths.psp

Lengths of Line Segments
is.marked.ppm

Test Whether A Point Process Model is Marked
urkiola

Urkiola Woods Point Pattern
identify.ppp

Identify Points in a Point Pattern
mincontrast

Method of Minimum Contrast
nnwhich.ppx

Nearest Neighbours in Any Dimensions
ord.family

Ord Interaction Process Family
nztrees

New Zealand Trees Point Pattern
periodify

Make Periodic Copies of a Spatial Pattern
ppm.object

Class of Fitted Point Process Models
print.psp

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

Class of Line Segment Patterns
quadratresample

Resample a Point Pattern by Resampling Quadrats
rMaternII

Simulate Matern Model II
redwood

California Redwoods Point Pattern (Ripley's Subset)
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
rjitter

Random Perturbation of a Point Pattern
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
scanpp

Read Point Pattern From Data File
setcov

Set Covariance of a Window
simdat

Simulated Point Pattern
simplify.owin

Approximate a Polygon by a Simpler Polygon
F3est

Empty Space Function of a Three-Dimensional Point Pattern
Gcom

Model Compensator of Nearest Neighbour Function
OrdThresh

Ord's Interaction model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
areaLoss

Difference of Disc Areas
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
clickppp

Interactively Add Points
clarkevans.test

Clark and Evans Test
coords

Extract or Change Coordinates of a Spatial or Spatiotemporal Point Pattern
diameter.owin

Diameter of a Window
envelope.envelope

Recompute Envelopes
fryplot

Fry Plot of Point Pattern
is.multitype.ppp

Test Whether A Point Pattern is Multitype
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
kppm

Fit Cluster or Cox Point Process Model
lurking

Lurking variable plot
methods.distfun

Methods for Distance Functions
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
multiplicity.ppp

Count Multiplicity of Duplicate Points
lut

Lookup Tables
pairdist.lpp

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

Plot a Pixel Image
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
rPoissonCluster

Simulate Poisson Cluster Process
rLGCP

Simulate Log-Gaussian Cox Process
rhohat

Smoothing Estimate of Covariate Transformation
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
rpoislinetess

Poisson Line Tessellation
smooth.ppp

Spatial smoothing of observations at irregular points
spatstat-package

The Spatstat Package
split.ppp

Divide Point Pattern into Sub-patterns
summary.owin

Summary of a Spatial Window
shift.ppp

Apply Vector Translation To Point Pattern