Learn R Programming

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

spatstat (version 1.26-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

17,668

Version

1.26-0

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

April 8th, 2012

Functions in spatstat (1.26-0)

Extract.quad

Subset of Quadrature Scheme
Gmulti

Marked Nearest Neighbour Distance Function
Replace.im

Reset Values in Subset of Image
affine.owin

Apply Affine Transformation To Window
AreaInter

The Area Interaction Point Process Model
DiggleGatesStibbard

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

Coerce Hyperframe to Data Frame
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
Extract.splitppp

Extract or Replace Sub-Patterns
Extract.psp

Extract Subset of Line Segment Pattern
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
Iest

Estimate the I-function
as.rectangle

Window Frame
bramblecanes

Hutchings' Bramble Canes data
G3est

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

Bronze gradient filter data
as.ppp

Convert Data To Class ppp
as.matrix.im

Convert Pixel Image to Matrix or Array
betacells

Beta Ganglion Cells in Cat Retina
clickppp

Interactively Add Points
chorley

Chorley-Ribble Cancer Data
compatible.fv

Test Whether Function Objects Are Compatible
Fest

Estimate the empty space function F
convexhull

Convex Hull
Gfox

Foxall's Distance Functions
copper

Berman-Huntington points and lines data
crossing.psp

Crossing Points of Two Line Segment Patterns
colourmap

Colour Lookup Tables
coords

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

Interactively Define a Polygon
crossdist

Pairwise distances
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Extract.fasp

Extract Subset of Function Array
dilation

Morphological Dilation
deltametric

Delta Metric
bdist.pixels

Distance to Boundary of Window
Extract.ppp

Extract or Replace Subset of Point Pattern
MultiStrauss

The Multitype Strauss Point Process Model
distmap.psp

Distance Map of Line Segment Pattern
eval.fv

Evaluate Expression Involving Functions
is.marked.ppp

Test Whether A Point Pattern is Marked
interp.im

Interpolate a Pixel Image
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
box3

Three-Dimensional Box
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
is.marked

Test Whether Marks Are Present
affine.psp

Apply Affine Transformation To Line Segment Pattern
kppm

Fit Cluster or Cox Point Process Model
lgcp.estpcf

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

Connected components of an image or window
compareFit

Residual Diagnostics for Multiple Fitted Models
markvario

Mark Variogram
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
expand.owin

Expand Window By Factor
markconnect

Mark Connection Function
nndist

Nearest neighbour distances
plot.bermantest

Plot Result of Berman Test
methods.boxx

Methods for Multi-Dimensional Box
corners

Corners of a rectangle
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
pppdist

Distance Between Two Point Patterns
predict.kppm

Prediction from a Fitted Cluster Point Process Model
print.quad

Print a Quadrature Scheme
im.object

Class of Images
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
is.marked.ppm

Test Whether A Point Process Model is Marked
lpp

Create Point Pattern on Linear Network
Fiksel

The Fiksel Interaction
Extract.msr

Extract Subset of Signed or Vector Measure
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
Kmulti

Marked K-Function
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
Kscaled

Locally Scaled K-function
MultiHard

The Multitype Hard Core Point Process Model
Ldot.inhom

Inhomogeneous Multitype L Dot Function
bounding.box

Bounding Box of a Window or Point Pattern
by.im

Apply Function to Image Broken Down by Factor
Jcross

Multitype J Function (i-to-j)
Kest.fft

K-function using FFT
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
contour.listof

Plot a List of Things
Pairwise

Generic Pairwise Interaction model
Lcross.inhom

Inhomogeneous Cross Type L Function
border

Border Region of a Window
blur

Apply Gaussian Blur to a Pixel Image
Kinhom

Inhomogeneous K-function
Kmeasure

Reduced Second Moment Measure
distfun

Distance Map as a Function
colourtools

Convert and Compare Colours in Different Formats
Kcom

Model Compensator of K Function
centroid.owin

Centroid of a window
Geyer

Geyer's Saturation Point Process Model
is.convex

Test Whether a Window is Convex
Extract.tess

Extract or Replace Subset of Tessellation
F3est

Empty Space Function of a Three-Dimensional Point Pattern
is.stationary

Recognise Stationary and Poisson Point Process Models
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
crossdist.default

Pairwise distances between two different sets of points
closing

Morphological Closing
data.ppm

Extract Original Data from a Fitted Point Process Model
bdist.tiles

Distance to Boundary of Window
edges2triangles

List Triangles in a Graph
Hardcore

The Hard Core Point Process Model
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
cut.ppp

Classify Points in a Point Pattern
Kres

Residual K Function
as.im

Convert to Pixel Image
Ldot

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

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

K function of a model
envelope.envelope

Recompute Envelopes
as.hyperframe

Convert Data to Hyperframe
clip.infline

Intersect Infinite Straight Lines with a Window
Gres

Residual G Function
Lest

L-function
collapse.fv

Collapse Several Function Tables into One
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
coef.ppm

Coefficients of Fitted Point Process Model
BadGey

Hybrid Geyer Point Process Model
Emark

Diagnostics for random marking
crossdist.psp

Pairwise distances between two different line segment patterns
nztrees

New Zealand Trees Point Pattern
as.tess

Convert Data To Tessellation
StraussHard

The Strauss / Hard Core Point Process Model
angles.psp

Orientation Angles of Line Segments
affine.ppp

Apply Affine Transformation To Point Pattern
by.ppp

Apply a Function to a Point Pattern Broken Down by Factor
Extract.im

Extract Subset of Image
affine

Apply Affine Transformation
density.psp

Kernel Smoothing of Line Segment Pattern
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
Extract.fv

Extract Subset of Function Values
distmap.owin

Distance Map of Window
Extract.listof

Extract or Replace Subset of a List of Things
eem

Exponential Energy Marks
amacrine

Hughes' Amacrine Cell Data
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
as.data.frame.im

Convert Pixel Image to Data Frame
bermantest

Berman's Tests for Point Process Model
contour.im

Contour plot of pixel image
default.dummy

Generate a Default Pattern of Dummy Points
bind.fv

Combine Function Value Tables
msr

Signed or Vector-Valued Measure
append.psp

Combine Two Line Segment Patterns
convexhull.xy

Convex Hull of Points
dirichlet

Dirichlet Tessellation of Point Pattern
methods.distfun

Methods for Distance Functions
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
Gcom

Model Compensator of Nearest Neighbour Function
eval.im

Evaluate Expression Involving Pixel Images
print.psp

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

Kernel Smoothed Intensity of Point Pattern
concatxy

Concatenate x,y Coordinate Vectors
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
quadrats

Divide Region into Quadrats
levelset

Level Set of a Pixel Image
marks

Marks of a Point Pattern
finpines

Pine saplings in Finland.
boxx

Multi-Dimensional Box
plot.slrm

Plot a Fitted Spatial Logistic Regression
bw.scott

Scott's Rule for Bandwidth Selection for Kernel Density
project.ppm

Force Point Process Model to be Valid
plot.tess

Plot a tessellation
diameter.box3

Geometrical Calculations for Three-Dimensional Box
Kest

K-function
erosion

Morphological Erosion
Kcross

Multitype K Function (Cross-type)
clarkevans.test

Clark and Evans Test
Tstat

Third order summary statistic
compatible.im

Test Whether Pixel Images Are Compatible
distmap.ppp

Distance Map of Point Pattern
cells

Biological Cells Point Pattern
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
Linhom

L-function
is.multitype.ppp

Test Whether A Point Pattern is Multitype
clickjoin

Interactively join vertices on a plot
Jmulti

Marked J Function
allstats

Calculate four standard summary functions of a point pattern.
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
redwood

California Redwoods Point Pattern (Ripley's Subset)
demopat

Artificial Data Point Pattern
disc

Circular Window
is.subset.owin

Determine Whether One Window is Contained In Another
Lcross

Multitype L-function (cross-type)
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
infline

Infinite Straight Lines
ewcdf

Weighted Empirical Cumulative Distribution Function
Saturated

Saturated Pairwise Interaction model
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
methods.lpp

Methods for Point Patterns on a Linear Network
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
imcov

Spatial Covariance of a Pixel Image
as.box3

Convert Data to Three-Dimensional Box
linearK

Linear K Function
longleaf

Longleaf Pines Point Pattern
is.multitype

Test whether Object is Multitype
circumradius

Circumradius and Diameter of a Linear Network
Gest

Nearest Neighbour Distance Function G
is.ppp

Test Whether An Object Is A Point Pattern
intersect.tess

Intersection of Two Tessellations
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
fryplot

Fry Plot of Point Pattern
flu

Influenza Virus Proteins
delaunay

Delaunay Triangulation of Point Pattern
discpartarea

Area of Part of Disc
Poisson

Poisson Point Process Model
iplot

Point and Click Interface for Displaying a Point Pattern
rhohat

Smoothing Estimate of Covariate Transformation
Softcore

The Soft Core Point Process Model
gridweights

Compute Quadrature Weights Based on Grid Counts
compatible

Test Whether Objects Are Compatible
identify.ppp

Identify Points in a Point Pattern
methods.linnet

Methods for Linear Networks
is.owin

Test Whether An Object Is A Window
Gdot

Multitype Nearest Neighbour Distance Function (i-to-any)
as.matrix.owin

Convert Pixel Image to Matrix
pool.rat

Pool Data from Several Ratio Objects
clarkevans

Clark and Evans Aggregation Index
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
as.mask

Pixel Image Approximation of a Window
Jdot

Multitype J Function (i-to-any)
DiggleGratton

Diggle-Gratton model
as.psp

Convert Data To Class psp
lengths.psp

Lengths of Line Segments
Kcross.inhom

Inhomogeneous Cross K Function
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
bounding.box.xy

Convex Hull of Points
model.frame.ppm

Extract the Environment of a Point Process Model
localK

Neighbourhood density function
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
discretise

Safely Convert Point Pattern Window to Binary Mask
scanpp

Read Point Pattern From Data File
areaGain

Difference of Disc Areas
diameter

Diameter of an Object
eroded.areas

Areas of Morphological Erosions
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
rpoispp

Generate Poisson Point Pattern
rMosaicField

Mosaic Random Field
rotate.psp

Rotate a Line Segment Pattern
summary.owin

Summary of a Spatial Window
print.ppp

Print Brief Details of a Point Pattern Dataset
flipxy

Exchange X and Y Coordinates
logLik.ppm

Log Likelihood and AIC for Point Process Model
default.expand

Compute Expansion Window for Simulation
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
rotate.ppp

Rotate a Point Pattern
Strauss

The Strauss Point Process Model
as.owin

Convert Data To Class owin
psp.object

Class of Line Segment Patterns
linim

Create Pixel Image on Linear Network
lgcp.estK

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
latest.news

Print News About Latest Version of Package
matclust.estpcf

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

Find Largest Circle Inside Window
anova.ppm

ANOVA for Fitted Point Process Models
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
plot.fasp

Plot a Function Array
is.empty

Test Whether An Object Is Empty
as.interact

Extract Interaction Structure
influence.ppm

Influence Measure for Spatial Point Process Model
stieltjes

Compute Integral of Function Against Cumulative Distribution
fitted.ppm

Fitted Conditional Intensity for Point Process Model
pixellate

Convert Spatial Object to Pixel Image
raster.x

Cartesian Coordinates for a Pixel Raster
rThomas

Simulate Thomas Process
pcf.fasp

Pair Correlation Function obtained from array of K functions
distmap

Distance Map
plot.influence.ppm

Plot Influence Measure
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
markcorr

Mark Correlation Function
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
dilated.areas

Areas of Morphological Dilations
quadrat.test

Chi-Squared Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
nnwhich.pp3

Nearest neighbours in three dimensions
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
gpc2owin

Convert Polygonal Region into Different Format
pairdist.ppp

Pairwise distances
rknn

Theoretical Distribution of Nearest Neighbour Distance
localpcf

Local pair correlation function
trim.rectangle

Cut margins from rectangle
ippm

Optimise Irregular Trend Parameters in Point Process Model
bdist.points

Distance to Boundary of Window
hyperframe

Hyper Data Frame
integral.im

Integral of a Pixel Image
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
hamster

Aherne's hamster tumour data
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
layered

Create List of Plotting Layers
nndist.pp3

Nearest neighbour distances in three dimensions
spatstat-internal

Internal spatstat functions
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
pcf

Pair Correlation Function
diameter.owin

Diameter of a Window
model.matrix.ppm

Extract Design Matrix from Point Process Model
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
pairdist.pp3

Pairwise distances in Three Dimensions
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
nnclean

Nearest Neighbour Clutter Removal
identify.psp

Identify Segments in a Line Segment Pattern
plot.kppm

Plot a fitted cluster point process
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
plot.owin

Plot a Spatial Window
crossdist.ppp

Pairwise distances between two different point patterns
update.ppm

Update a Fitted Point Process Model
rjitter

Random Perturbation of a Point Pattern
marks.psp

Marks of a Line Segment Pattern
harmonise.im

Make Pixel Images Compatible
gorillas

Gorilla Nesting Sites
linnet

Create a Linear Network
methods.units

Methods for Units
swedishpines

Swedish Pines Point Pattern
rMaternII

Simulate Matern Model II
slrm

Spatial Logistic Regression
spatstat-deprecated

Deprecated spatstat functions
harmonic

Basis for Harmonic Functions
fv

Create a Function Value Table
owin

Create a Window
ord.family

Ord Interaction Process Family
envelope

Simulation Envelopes of Summary Function
nearest.raster.point

Find Pixel Nearest to a Given Point
square

Square Window
print.ppm

Print a Fitted Point Process Model
rescale.owin

Convert Window to Another Unit of Length
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
runifpointOnLines

Generate N Uniform Random Points On Line Segments
lansing

Lansing Woods Point Pattern
fv.object

Function Value Table
rmpoispp

Generate Multitype Poisson Point Pattern
rDGS

Perfect Simulation of the Diggle-Gates-Stibbard Process
nnwhich.ppx

Nearest Neighbours in Any Dimensions
rescale.im

Convert Pixel Image to Another Unit of Length
nndist.psp

Nearest neighbour distances between line segments
runifpoint3

Generate N Uniform Random Points in Three Dimensions
pixellate.ppp

Convert Point Pattern to Pixel Image
perimeter

Perimeter Length of Window
fasp.object

Function Arrays for Spatial Patterns
rMatClust

Simulate Matern Cluster Process
ants

Harkness-Isham ants' nests data
pcfdot

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

Mark Correlation Integral
mincontrast

Method of Minimum Contrast
summary.splitppp

Summary of a Split Point Pattern
sharpen

Data Sharpening of Point Pattern
methods.kppm

Methods for Cluster Point Process Models
plot.envelope

Plot a Simulation Envelope
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
quantile.im

Sample Quantiles of Pixel Image
is.ppm

Test Whether An Object Is A Fitted Point Process Model
setcov

Set Covariance of a Window
logLik.slrm

Loglikelihood of Spatial Logistic Regression
rGaussPoisson

Simulate Gauss-Poisson Process
murchison

Murchison gold deposits
heather

Diggle's Heather Data
Jest

Estimate the J-function
rlinegrid

Generate grid of parallel lines with random displacement
pointsOnLines

Place Points Evenly Along Specified Lines
psp

Create a Line Segment Pattern
effectfun

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

Distance for a Point Pattern Matching
nsegments

Number of Line Segments in a Line Segment Pattern
progressreport

Print Progress Reports
pixellate.owin

Convert Window to Pixel Image
rat

Ratio object
quadratresample

Resample a Point Pattern by Resampling Quadrats
compatible.fasp

Test Whether Function Arrays Are Compatible
predict.lppm

Predict Point Process Model on Linear Network
pairsat.family

Saturated Pairwise Interaction Point Process Family
simulate.kppm

Simulate a Fitted Cluster Point Process Model
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
rthin

Random Thinning
nncross

Nearest Neighbours Between Two Patterns
rho2hat

Smoothed Relative Density of Pairs of Covariate Values
varblock

Estimate Variance of Summary Statistic by Subdivision
plot.pp3

Plot a three-dimensional point pattern
npfun

Dummy Function Returns Number of Points
spatstat-package

The Spatstat Package
runifpointx

Generate N Uniform Random Points in Any Dimensions
methods.rho2hat

Methods for Intensity Functions of Two Spatial Covariates
rpoislpp

Poisson Point Process on a Linear Network
suffstat

Sufficient Statistic of Point Process Model
rStraussHard

Perfect Simulation of the Strauss-Hardcore Process
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
im

Create a Pixel Image Object
project2segment

Move Point To Nearest Line
quadratcount

Quadrat counting for a point pattern
opening

Morphological Opening
methods.pp3

Methods for three-dimensional point patterns
rSSI

Simulate Simple Sequential Inhibition
solutionset

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

Apply Vector Translation To Point Pattern
lppm

Fit Point Process Model to Point Pattern on Linear Network
model.depends

Identify Covariates Involved in each Model Term
ppx

Multidimensional Space-Time Point Pattern
runifpoint

Generate N Uniform Random Points
reach

Interaction Distance of a Point Process
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
rmh.default

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

Plot a Spatial Kolmogorov-Smirnov Test
lut

Lookup Tables
plot.listof

Plot a List of Things
pppmatching.object

Class of Point Matchings
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
nbfires

Point Patterns of New Brunswick Forest Fires
rlabel

Random Re-Labelling of Point Pattern
Triplets

The Triplet Point Process Model
pool

Pool Data
nnwhich

Nearest neighbour
periodify

Make Periodic Copies of a Spatial Pattern
formula.ppm

Model Formulae for Gibbs Point Process Models
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
plot.linim

Plot Pixel Image on Linear Network
volume

Volume of an Object
as.polygonal

Convert a Window to a Polygonal Window
dfbetas.ppm

Parameter influence measure
unitname

Name for Unit of Length
rgbim

Create Colour-Valued Pixel Image
plot.psp

plot a Spatial Line Segment Pattern
profilepl

Profile Maximum Pseudolikelihood
qqplot.ppm

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

Plot a linear network
idw

Inverse-distance weighted smoothing of observations at irregular points
rescue.rectangle

Convert Window Back To Rectangle
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
methods.slrm

Methods for Spatial Logistic Regression Models
rshift.ppp

Randomly Shift a Point Pattern
lineardisc

Compute Disc of Given Radius in Linear Network
tess

Create a Tessellation
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
anemones

Beadlet Anemones Data
rpoint

Generate N Random Points
tile.areas

Compute Areas of Tiles in a Tessellation
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
methods.box3

Methods for Three-Dimensional Box
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
shift.psp

Apply Vector Translation To Line Segment Pattern
simplenet

Simple Example of Linear Network
shift.im

Apply Vector Translation To Pixel Image
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
rPoissonCluster

Simulate Poisson Cluster Process
summary.ppm

Summarizing a Fitted Point Process Model
inforder.family

Infinite Order Interaction Family
pairdist.default

Pairwise distances
pairdist.lpp

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

Inhomogeneous Neighbourhood Density Function
sumouter

Compute Quadratic Forms
unnormdensity

Weighted kernel smoother
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
unmark

Remove Marks
miplot

Morishita Index Plot
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
update.kppm

Update a Fitted Cluster Point Process Model
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
print.owin

Print Brief Details of a Spatial Window
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
plot.ppm

plot a Fitted Point Process Model
nearestsegment

Find Line Segment Nearest to Each Point
ponderosa

Ponderosa Pine Tree Point Pattern
plot.plotppm

Plot a plotppm Object Created by plot.ppm
ppp.object

Class of Point Patterns
runiflpp

Uniform Random Points on a Linear Network
rCauchy

Simulate Neyman-Scott Point Process with Cauchy cluster kernel
ppp

Create a Point Pattern
plot.msr

Plot a Signed or Vector-Valued Measure
plot.layered

Layered Plot
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
rmpoint

Generate N Random Multitype Points
smooth.ppp

Spatial smoothing of observations at irregular points
plot.fv

Plot Function Values
multiplicity.ppp

Count Multiplicity of Duplicate Points
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
smooth.msr

Smooth a Signed or Vector-Valued Measure
Ord

Generic Ord Interaction model
selfcrossing.psp

Crossing Points in a Line Segment Pattern
shapley

Galaxies in the Shapley Supercluster
ppm.object

Class of Fitted Point Process Models
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
union.quad

Union of Data and Dummy Points
pp3

Three Dimensional Point Pattern
spokes

Spokes pattern of dummy points
rLGCP

Simulate Log-Gaussian Cox Process
rshift.psp

Randomly Shift a Line Segment Pattern
ripras

Estimate window from points alone
split.im

Divide Image Into Sub-images
inside.owin

Test Whether Points Are Inside A Window
simplify.owin

Approximate a Polygon by a Simpler Polygon
spatstat.options

Internal Options in Spatstat Package
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
pcf.fv

Pair Correlation Function obtained from K Function
plot.leverage.ppm

Plot Leverage Function
rMaternI

Simulate Matern Model I
rVarGamma

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

Generate Poisson Point Pattern in Three Dimensions
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
vargamma.estpcf

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

Summary of a Line Segment Pattern Dataset
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
print.im

Print Brief Details of an Image
quad.object

Class of Quadrature Schemes
plot.colourmap

Plot a Colour Map
summary.im

Summarizing a Pixel Image
area.owin

Area of a Window
zapsmall.im

Rounding of Pixel Values
rDiggleGratton

Perfect Simulation of the Diggle-Gratton Process
shift

Apply Vector Translation
reduced.sample

Reduced Sample Estimator using Histogram Data
gridcentres

Rectangular grid of points
rstrat

Simulate Stratified Random Point Pattern
superimpose

Superimpose Several Geometric Patterns
mean.im

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

Ord's Interaction model
leverage.ppm

Leverage Measure for Spatial Point Process Model
Hest

Spherical Contact Distribution Function
valid.ppm

Check Whether Point Process Model is Valid
pairs.im

Scatterplot Matrix for Pixel Images
pixellate.psp

Convert Line Segment Pattern to Pixel Image
scaletointerval

Rescale Data to Lie Between Specified Limits
pcfinhom

Inhomogeneous Pair Correlation Function
model.images

Compute Images of Constructed Covariates
pixelquad

Quadrature Scheme Based on Pixel Grid
summary.listof

Summary of a List of Things
rmh.ppm

Simulate from a Fitted Point Process Model
rpoisline

Generate Poisson Random Line Process
as.function.fv

Convert Function Value Table to Function
vargamma.estK

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

Evaluate an Expression in a Function Table
tiles

Extract List of Tiles in a Tessellation
npoints

Number of Points in a Point Pattern
pcfcross

Multitype pair correlation function (cross-type)
plot.ppp

plot a Spatial Point Pattern
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
rescale.ppp

Convert Point Pattern to Another Unit of Length
rotate

Rotate
plot.hyperframe

Plot Entries in a Hyperframe
predict.ppm

Prediction from a Fitted Point Process Model
residuals.ppm

Residuals for Fitted Point Process Model
plot.splitppp

Plot a List of Point Patterns
Kdot

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

plot a Spatial Quadrature Scheme
midpoints.psp

Midpoints of Line Segment Pattern
rpoislinetess

Poisson Line Tessellation
rHardcore

Perfect Simulation of the Hardcore Process
rescale

Convert dataset to another unit of length
rsyst

Simulate systematic random point pattern
rcell

Simulate Baddeley-Silverman Cell Process
rshift

Random Shift
cut.im

Convert Pixel Image from Numeric to Factor
split.ppp

Divide Point Pattern into Sub-patterns
unique.ppp

Extract Unique Points from a Spatial Point Pattern
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
ppm

Fit Point Process Model to Data
vertices

Vertices of a Window
chicago

Chicago Street Crime Data
envelope.lpp

Envelope for Point Patterns on Linear Network
endpoints.psp

Endpoints of Line Segment Pattern
persp.im

Perspective Plot of Pixel Image
pool.envelope

Pool Data from Several Envelopes
hist.im

Histogram of Pixel Values in an Image
K3est

K-function of a Three-Dimensional Point Pattern
bei

Tropical rain forest trees
eval.fasp

Evaluate Expression Involving Function Arrays
rotate.owin

Rotate a Window
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
LennardJones

The Lennard-Jones Potential
linearpcf

Linear Pair Correlation Function
areaLoss

Difference of Disc Areas
japanesepines

Japanese Pines Point Pattern
owin.object

Class owin
is.multitype.ppm

Test Whether A Point Process Model is Multitype
complement.owin

Take Complement of a Window
pool.fasp

Pool Data from Several Function Arrays
linearKinhom

Inhomogeneous Linear K Function
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
pppmatching

Create a Point Matching
pcfdot.inhom

Inhomogeneous Multitype Pair Correlation Function (Type-i-To-Any-Type)
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
pcf.ppp

Pair Correlation Function of Point Pattern
letterR

Window in Shape of Letter R
lurking

Lurking variable plot
is.im

Test Whether An Object Is A Pixel Image
pairdist

Pairwise distances
summary.ppp

Summary of a Point Pattern Dataset
shift.owin

Apply Vector Translation To Window
pairdist.psp

Pairwise distances between line segments
plot.im

Plot a Pixel Image
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
rNeymanScott

Simulate Neyman-Scott Process
pairdist.ppx

Pairwise Distances in Any Dimensions
rMosaicSet

Mosaic Random Set
scan.test

Spatial Scan Test
urkiola

Urkiola Woods Point Pattern
pairwise.family

Pairwise Interaction Process Family
triplet.family

Triplet Interaction Family
rStrauss

Perfect Simulation of the Strauss Process
summary.quad

Summarizing a Quadrature Scheme
simdat

Simulated Point Pattern
spruces

Spruces Point Pattern
smooth.fv

Apply Smoothing to Function Values
whist

Weighted Histogram
rshift.splitppp

Randomly Shift a List of Point Patterns
runifdisc

Generate N Uniform Random Points in a Disc
quadscheme

Generate a Quadrature Scheme from a Point Pattern