Learn R Programming

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

spatstat (version 1.24-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, 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.24-1

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

October 23rd, 2011

Functions in spatstat (1.24-1)

Gcom

Model Compensator of Nearest Neighbour Function
Gdot

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

Hughes' Amacrine Cell Data
anova.ppm

ANOVA for Fitted Point Process Models
circumradius

Circumradius and Diameter of a Linear Network
Extract.msr

Extract Subset of Signed or Vector Measure
Jest

Estimate the J-function
Jcross

Multitype J Function (i-to-j)
as.rectangle

Window Frame
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
Hardcore

The Hard Core Point Process Model
Extract.psp

Extract Subset of Line Segment Pattern
Softcore

The Soft Core Point Process Model
Extract.ppp

Extract or Replace Subset of Point Pattern
crossing.psp

Crossing Points of Two Line Segment Patterns
affine

Apply Affine Transformation
Extract.quad

Subset of Quadrature Scheme
Extract.tess

Extract or Replace Subset of Tessellation
affine.owin

Apply Affine Transformation To Window
convexhull

Convex Hull
bronzefilter

Bronze gradient filter data
bind.fv

Combine Function Value Tables
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
LennardJones

The Lennard-Jones Potential
affine.psp

Apply Affine Transformation To Line Segment Pattern
Jdot

Multitype J Function (i-to-any)
Emark

Diagnostics for random marking
contour.im

Contour plot of pixel image
applynbd

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

Inhomogeneous Cross Type L Function
Kcross.inhom

Inhomogeneous Cross K Function
betacells

Beta Ganglion Cells in Cat Retina
Gres

Residual G Function
Kest

K-function
area.owin

Area of a Window
bermantest

Berman's Tests for Point Process Model
effectfun

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

L-function
bw.diggle

Cross Validated Bandwidth Selection for Kernel Density
affine.ppp

Apply Affine Transformation To Point Pattern
contour.listof

Plot a List of Things
corners

Corners of a rectangle
compareFit

Residual Diagnostics for Multiple Fitted Models
envelope.lpp

Envelope for Point Patterns on Linear Network
Gest

Nearest Neighbour Distance Function G
copper

Berman-Huntington points and lines data
Kmodel

K function of a model
default.dummy

Generate a Default Pattern of Dummy Points
colourmap

Colour Lookup Tables
angles.psp

Orientation Angles of Line Segments
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
by.ppp

Apply a Function to a Point Pattern Broken Down by Factor
convexhull.xy

Convex Hull of Points
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
coords

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

The Fiksel Interaction
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
Fest

Estimate the empty space function F
clarkevans

Clark and Evans Aggregation Index
G3est

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

Estimate the I-function
bounding.box.xy

Convex Hull of Points
BadGey

Hybrid Geyer Point Process Model
clickppp

Interactively Add Points
MultiStraussHard

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

Convert Data To Class ppp
bramblecanes

Hutchings' Bramble Canes data
Lcross

Multitype L-function (cross-type)
border

Border Region of a Window
Gcross

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

Marked J Function
finpines

Pine saplings in Finland.
Kmeasure

Reduced Second Moment Measure
chorley

Chorley-Ribble Cancer Data
bdist.pixels

Distance to Boundary of Window
fv.object

Function Value Table
Gfox

Foxall's Distance Functions
as.function.fv

Convert Function Value Table to Function
Extract.splitppp

Extract or Replace Sub-Patterns
blur

Apply Gaussian Blur to a Pixel Image
bdist.points

Distance to Boundary of Window
Extract.listof

Extract or Replace Subset of a List of Things
lgcp.estK

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

Inhomogeneous K-function
centroid.owin

Centroid of a window
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
flu

Influenza Virus Proteins
Ord

Generic Ord Interaction model
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
hist.im

Histogram of Pixel Values in an Image
Ldot.inhom

Inhomogeneous Multitype L Dot Function
by.im

Apply Function to Image Broken Down by Factor
Kres

Residual K Function
nearestsegment

Find Line Segment Nearest to Each Point
distmap.ppp

Distance Map of Point Pattern
Kcross

Multitype K Function (Cross-type)
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
lansing

Lansing Woods Point Pattern
diameter.box3

Geometrical Calculations for Three-Dimensional Box
envelope

Simulation Envelopes of Summary Function
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
as.data.frame.im

Convert Pixel Image to Data Frame
distmap.owin

Distance Map of Window
anemones

Beadlet Anemones Data
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
boxx

Multi-Dimensional Box
lurking

Lurking variable plot
Ldot

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

Marked Nearest Neighbour Distance Function
alltypes

Calculate Summary Statistic for All Types in a Multitype Point Pattern
expand.owin

Expand Window By Factor
clip.infline

Intersect Infinite Straight Lines with a Window
crossdist.psp

Pairwise distances between two different line segment patterns
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
delaunay

Delaunay Triangulation of Point Pattern
Kdot.inhom

Inhomogeneous Multitype K Dot Function
as.interact

Extract Interaction Structure
ewcdf

Weighted Empirical Cumulative Distribution Function
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
StraussHard

The Strauss / Hard Core Point Process Model
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
nncross

Nearest Neighbours Between Two Patterns
Kmulti

Marked K-Function
Kcom

Model Compensator of K Function
as.hyperframe

Convert Data to Hyperframe
idw

Inverse-distance weighted smoothing of observations at irregular points
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
distmap.psp

Distance Map of Line Segment Pattern
clickjoin

Interactively join vertices on a plot
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
lgcp.estpcf

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

Diggle-Gratton model
demopat

Artificial Data Point Pattern
fasp.object

Function Arrays for Spatial Patterns
pcf.ppp

Pair Correlation Function of Point Pattern
Pairwise

Generic Pairwise Interaction model
dirichlet

Dirichlet Tessellation of Point Pattern
F3est

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

Test Whether An Object Is A Point Pattern
Extract.fasp

Extract Subset of Function Array
density.psp

Kernel Smoothing of Line Segment Pattern
nndist.psp

Nearest neighbour distances between line segments
markvario

Mark Variogram
crossdist.ppp

Pairwise distances between two different point patterns
bdist.tiles

Distance to Boundary of Window
marktable

Tabulate Marks in Neighbourhood of Every Point in a Point Pattern
logLik.ppm

Log Likelihood and AIC for Point Process Model
rpoispp

Generate Poisson Point Pattern
compatible

Test Whether Objects Are Compatible
colourtools

Convert and Compare Colours in Different Formats
clickpoly

Interactively Define a Polygon
is.ppm

Test Whether An Object Is A Fitted Point Process Model
japanesepines

Japanese Pines Point Pattern
flipxy

Exchange X and Y Coordinates
dilated.areas

Areas of Morphological Dilations
envelope.envelope

Recompute Envelopes
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
Strauss

The Strauss Point Process Model
Geyer

Geyer's Saturation Point Process Model
Kdot

Multitype K Function (i-to-any)
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
closing

Morphological Closing
ponderosa

Ponderosa Pine Tree Point Pattern
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
as.im

Convert to Pixel Image
as.polygonal

Convert a Window to a Polygonal Window
rshift.ppp

Randomly Shift a Point Pattern
letterR

Window in Shape of Letter R
longleaf

Longleaf Pines Point Pattern
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
pixellate

Convert Spatial Object to Pixel Image
ppm

Fit Point Process Model to Data
is.im

Test Whether An Object Is A Pixel Image
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
quad.object

Class of Quadrature Schemes
rMaternI

Simulate Matern Model I
discretise

Safely Convert Point Pattern Window to Binary Mask
Kest.fft

K-function using FFT
pppdist

Distance Between Two Point Patterns
gridweights

Compute Quadrature Weights Based on Grid Counts
pairdist

Pairwise distances
Extract.im

Extract Subset of Image
bw.smoothppp

Cross Validated Bandwidth Selection for Spatial Smoothing
is.owin

Test Whether An Object Is A Window
nndist.pp3

Nearest neighbour distances in three dimensions
fryplot

Fry Plot of Point Pattern
interp.im

Interpolate a Pixel Image
is.empty

Test Whether An Object Is Empty
plot.msr

Plot a Signed or Vector-Valued Measure
distmap

Distance Map
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
layered

Create List of Plotting Layers
diameter.owin

Diameter of a Window
spatstat-deprecated

Deprecated spatstat functions
osteo

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

Plot Entries in a Hyperframe
MultiStrauss

The Multitype Strauss Point Process Model
nndist

Nearest neighbour distances
distfun

Distance Map as a Function
print.ppm

Print a Fitted Point Process Model
pixelquad

Quadrature Scheme Based on Pixel Grid
is.convex

Test Whether a Window is Convex
collapse.fv

Collapse Several Function Tables into One
cells

Biological Cells Point Pattern
is.marked.ppm

Test Whether A Point Process Model is Marked
mean.im

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

Take Complement of a Window
plot.fasp

Plot a Function Array
eval.fv

Evaluate Expression Involving Functions
bei

Tropical rain forest trees
plot.linnet

Plot a linear network
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
coef.ppm

Coefficients of Fitted Point Process Model
linearK

Linear K Function
plot.slrm

Plot a Fitted Spatial Logistic Regression
integral.im

Integral of a Pixel Image
plot.linim

Plot Pixel Image on Linear Network
perimeter

Perimeter Length of Window
mincontrast

Method of Minimum Contrast
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
is.multitype.ppm

Test Whether A Point Process Model is Multitype
formula.ppm

Model Formulae for Gibbs Point Process Models
inside.owin

Test Whether Points Are Inside A Window
progressreport

Print Progress Reports
plot.fv

Plot Function Values
pool

Pool Data
harmonise.im

Make Pixel Images Compatible
linearpcf

Linear Pair Correlation Function
smooth.ppp

Spatial smoothing of observations at irregular points
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
plot.tess

Plot a tessellation
summary.ppp

Summary of a Point Pattern Dataset
pppmatching

Create a Point Matching
plot.colourmap

Plot a Colour Map
pairdist.pp3

Pairwise distances in Three Dimensions
AreaInter

The Area Interaction Point Process Model
quadrat.test

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

Fit Cluster or Cox Point Process Model
profilepl

Profile Maximum Pseudolikelihood
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
model.images

Compute Images of Constructed Covariates
shift.psp

Apply Vector Translation To Line Segment Pattern
discpartarea

Area of Part of Disc
print.psp

Print Brief Details of a Line Segment Pattern Dataset
model.frame.ppm

Extract the Environment of a Point Process Model
infline

Infinite Straight Lines
rgbim

Create Colour-Valued Pixel Image
unnormdensity

Weighted kernel smoother
hyperframe

Hyper Data Frame
quadscheme

Generate a Quadrature Scheme from a Point Pattern
rpoislpp

Poisson Point Process on a Linear Network
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
matchingdist

Distance for a Point Pattern Matching
murchison

Murchison gold deposits
crossdist.default

Pairwise distances between two different sets of points
concatxy

Concatenate x,y Coordinate Vectors
disc

Circular Window
smooth.msr

Smooth a Signed or Vector-Valued Measure
rpoislinetess

Poisson Line Tessellation
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
methods.lpp

Methods for Point Patterns on a Linear Network
levelset

Level Set of a Pixel Image
is.subset.owin

Determine Whether One Window is Contained In Another
opening

Morphological Opening
rMaternII

Simulate Matern Model II
areaGain

Difference of Disc Areas
shift

Apply Vector Translation
plot.im

Plot a Pixel Image
identify.ppp

Identify Points in a Point Pattern
pcf.fasp

Pair Correlation Function obtained from array of K functions
superimpose

Superimpose Several Geometric Patterns
summary.listof

Summary of a List of Things
incircle

Find Largest Circle Inside Window
pcfcross

Multitype pair correlation function (cross-type)
lut

Lookup Tables
runifdisc

Generate N Uniform Random Points in a Disc
lengths.psp

Lengths of Line Segments
npoints

Number of Points in a Point Pattern
project2segment

Move Point To Nearest Line
cut.ppp

Classify Points in a Point Pattern
persp.im

Perspective Plot of Pixel Image
quantile.im

Sample Quantiles of Pixel Image
predict.ppm

Prediction from a Fitted Point Process Model
pairdist.psp

Pairwise distances between line segments
simulate.kppm

Simulate a Fitted Cluster Point Process Model
pairdist.default

Pairwise distances
print.im

Print Brief Details of an Image
marks

Marks of a Point Pattern
update.kppm

Update a Fitted Cluster Point Process Model
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
Linhom

L-function
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
iplot

Point and Click Interface for Displaying a Point Pattern
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
methods.distfun

Methods for Distance Functions
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
spokes

Spokes pattern of dummy points
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
nbfires

Point Patterns of New Brunswick Forest Fires
plot.owin

Plot a Spatial Window
print.quad

Print a Quadrature Scheme
rknn

Theoretical Distribution of Nearest Neighbour Distance
rThomas

Simulate Thomas Process
rLGCP

Simulate Log-Gaussian Cox Process
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
pairwise.family

Pairwise Interaction Process Family
linim

Create Pixel Image on Linear Network
split.ppp

Divide Point Pattern into Sub-patterns
runiflpp

Uniform Random Points on a Linear Network
rMosaicField

Mosaic Random Field
reach

Interaction Distance of a Point Process
pool.fasp

Pool Data from Several Function Arrays
summary.ppm

Summarizing a Fitted Point Process Model
lineardisc

Compute Disc of Given Radius in Linear Network
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
rmh.ppm

Simulate from a Fitted Point Process Model
pixellate.ppp

Convert Point Pattern to Pixel Image
rlinegrid

Generate grid of parallel lines with random displacement
Extract.fv

Extract Subset of Function Values
unitname

Name for Unit of Length
gridcentres

Rectangular grid of points
pp3

Three Dimensional Point Pattern
rotate.owin

Rotate a Window
multiplicity.ppp

Count Multiplicity of Duplicate Points
envelope.pp3

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

Apply Vector Translation To Pixel Image
scan.test

Spatial Scan Test
spatstat.options

Internal Options in Spatstat Package
hamster

Aherne's hamster tumour data
data.ppm

Extract Original Data from a Fitted Point Process Model
urkiola

Urkiola Woods Point Pattern
vertices

Vertices of a Window
localK

Neighbourhood density function
eval.fasp

Evaluate Expression Involving Function Arrays
rmpoint

Generate N Random Multitype Points
sumouter

Compute Quadratic Forms
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
methods.pp3

Methods for three-dimensional point patterns
pairsat.family

Saturated Pairwise Interaction Point Process Family
pairdist.ppp

Pairwise distances
msr

Signed or Vector-Valued Measure
scaletointerval

Rescale Data to Lie Between Specified Limits
linnet

Create a Linear Network
marks.psp

Marks of a Line Segment Pattern
rshift.splitppp

Randomly Shift a List of Point Patterns
slrm

Spatial Logistic Regression
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
rhohat

Smoothing Estimate of Covariate Transformation
compatible.fv

Test Whether Function Objects Are Compatible
harmonic

Basis for Harmonic Functions
runifpointOnLines

Generate N Uniform Random Points On Line Segments
pppmatching.object

Class of Point Matchings
plot.ppp

plot a Spatial Point Pattern
print.ppp

Print Brief Details of a Point Pattern Dataset
eroded.areas

Areas of Morphological Erosions
lpp

Create Point Pattern on Linear Network
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
rescale.im

Convert Pixel Image to Another Unit of Length
rpoint

Generate N Random Points
plot.ppm

plot a Fitted Point Process Model
split.im

Divide Image Into Sub-images
whist

Weighted Histogram
shapley

Galaxies in the Shapley Supercluster
pairs.im

Scatterplot Matrix for Pixel Images
quadratresample

Resample a Point Pattern by Resampling Quadrats
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
is.marked

Test Whether Marks Are Present
eval.im

Evaluate Expression Involving Pixel Images
quadrats

Divide Region into Quadrats
tess

Create a Tessellation
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
rmhmodel.ppm

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

Print Brief Details of a Spatial Window
pool.rat

Pool Data from Several Ratio Objects
trim.rectangle

Cut margins from rectangle
ppp

Create a Point Pattern
plot.listof

Plot a List of Things
pairdist.lpp

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

Spatial Covariance of a Pixel Image
scanpp

Read Point Pattern From Data File
rStrauss

Perfect Simulation of the Strauss Process
runifpoint

Generate N Uniform Random Points
rpoisline

Generate Poisson Random Line Process
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
tiles

Extract List of Tiles in a Tessellation
ord.family

Ord Interaction Process Family
union.quad

Union of Data and Dummy Points
default.expand

Compute Expansion Window for Simulation
pool.envelope

Pool Data from Several Envelopes
suffstat

Sufficient Statistic of Point Process Model
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
nnwhich.ppx

Nearest Neighbours in Any Dimensions
smooth.fv

Apply Smoothing to Function Values
summary.im

Summarizing a Pixel Image
density.ppp

Kernel Smoothed Intensity of Point Pattern
predict.kppm

Prediction from a Fitted Cluster Point Process Model
identify.psp

Identify Segments in a Line Segment Pattern
rcell

Simulate Baddeley-Silverman Cell Process
residuals.ppm

Residuals for Fitted Point Process Model
simdat

Simulated Point Pattern
methods.units

Methods for Units
summary.psp

Summary of a Line Segment Pattern Dataset
swedishpines

Swedish Pines Point Pattern
nnwhich.pp3

Nearest neighbours in three dimensions
rMatClust

Simulate Matern Cluster Process
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
methods.box3

Methods for Three-Dimensional Box
nztrees

New Zealand Trees Point Pattern
owin

Create a Window
shift.owin

Apply Vector Translation To Window
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
summary.owin

Summary of a Spatial Window
methods.linnet

Methods for Linear Networks
unique.ppp

Extract Unique Points from a Spatial Point Pattern
varblock

Estimate Variance of Summary Statistic by Subdivision
plot.bermantest

Plot Result of Berman Test
vcov.ppm

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

Diagnostic Plots for Fitted Point Process Model
plot.pp3

Plot a three-dimensional point pattern
rstrat

Simulate Stratified Random Point Pattern
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
intersect.tess

Intersection of Two Tessellations
plot.envelope

Plot a Simulation Envelope
pointsOnLines

Place Points Evenly Along Specified Lines
selfcrossing.psp

Crossing Points in a Line Segment Pattern
dilation

Morphological Dilation
plot.layered

Layered Plot
nearest.raster.point

Find Pixel Nearest to a Given Point
diameter

Diameter of an Object
as.box3

Convert Data to Three-Dimensional Box
rthin

Random Thinning
ripras

Estimate window from points alone
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
plot.psp

plot a Spatial Line Segment Pattern
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
rshift

Random Shift
simplenet

Simple Example of Linear Network
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
as.owin

Convert Data To Class owin
pixellate.psp

Convert Line Segment Pattern to Pixel Image
rshift.psp

Randomly Shift a Line Segment Pattern
plot.kppm

Plot a fitted cluster point process
localKinhom

Inhomogeneous Neighbourhood Density Function
ppm.object

Class of Fitted Point Process Models
summary.splitppp

Summary of a Split Point Pattern
tile.areas

Compute Areas of Tiles in a Tessellation
rjitter

Random Perturbation of a Point Pattern
latest.news

Print News About Latest Version of Package
spruces

Spruces Point Pattern
logLik.slrm

Loglikelihood of Spatial Logistic Regression
plot.quad

plot a Spatial Quadrature Scheme
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
simplify.owin

Approximate a Polygon by a Simpler Polygon
fv

Create a Function Value Table
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
zapsmall.im

Rounding of Pixel Values
owin.object

Class owin
ppp.object

Class of Point Patterns
rsyst

Simulate systematic random point pattern
with.fv

Evaluate an Expression in a Function Table
model.depends

Identify Covariates Involved in each Model Term
matclust.estpcf

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

Fit Point Process Model to Point Pattern on Linear Network
shift.ppp

Apply Vector Translation To Point Pattern
stieltjes

Compute Integral of Function Against Cumulative Distribution
fitted.ppm

Fitted Conditional Intensity for Point Process Model
model.matrix.ppm

Extract Design Matrix from Point Process Model
heather

Diggle's Heather Data
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
compatible.im

Test Whether Pixel Images Are Compatible
psp.object

Class of Line Segment Patterns
pcf

Pair Correlation Function
rMosaicSet

Mosaic Random Set
raster.x

Cartesian Coordinates for a Pixel Raster
miplot

Morishita Index Plot
is.multitype

Test whether Object is Multitype
rotate.ppp

Rotate a Point Pattern
rmh.default

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

Make Periodic Copies of a Spatial Pattern
rotate

Rotate
reduced.sample

Reduced Sample Estimator using Histogram Data
pcfinhom

Inhomogeneous Pair Correlation Function
square

Square Window
Replace.im

Reset Values in Subset of Image
rescale.owin

Convert Window to Another Unit of Length
rotate.psp

Rotate a Line Segment Pattern
Hest

Spherical Contact Distribution Function
Kscaled

Locally Scaled K-function
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
as.psp

Convert Data To Class psp
pcfdot

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

Calculate four standard summary functions of a point pattern.
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
markconnect

Mark Connection Function
markcorr

Mark Correlation Function
is.stationary

Recognise Stationary and Poisson Point Process Models
methods.boxx

Methods for Multi-Dimensional Box
pcfdot.inhom

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

Quadrat counting for a point pattern
rescale.ppp

Convert Point Pattern to Another Unit of Length
rNeymanScott

Simulate Neyman-Scott Process
nnwhich

Nearest neighbour
solutionset

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

Remove Marks
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
rescue.rectangle

Convert Window Back To Rectangle
spatstat-package

The Spatstat Package
deltametric

Delta Metric
psp

Create a Line Segment Pattern
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
rat

Ratio object
as.tess

Convert Data To Tessellation
update.ppm

Update a Fitted Point Process Model
Saturated

Saturated Pairwise Interaction model
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
MultiHard

The Multitype Hard Core Point Process Model
compatible.fasp

Test Whether Function Arrays Are Compatible
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
K3est

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

Kernel Smoothed Intensity of Split Point Pattern
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
gpc2owin

Convert Polygonal Region into Different Format
nnclean

Nearest Neighbour Clutter Removal
redwood

California Redwoods Point Pattern (Ripley's Subset)
pixellate.owin

Convert Window to Pixel Image
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
sharpen

Data Sharpening of Point Pattern
clarkevans.test

Clark and Evans Test
Poisson

Poisson Point Process Model
npfun

Dummy Function Returns Number of Points
rGaussPoisson

Simulate Gauss-Poisson Process
ants

Harkness-Isham ants' nests data
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
box3

Three-Dimensional Box
areaLoss

Difference of Disc Areas
cut.im

Convert Pixel Image from Numeric to Factor
chicago

Chicago Street Crime Data
as.mask

Pixel Image Approximation of a Window
eem

Exponential Energy Marks
erosion

Morphological Erosion
bounding.box

Bounding Box of a Window or Point Pattern
append.psp

Combine Two Line Segment Patterns
im.object

Class of Images
localpcf

Local pair correlation function
pairdist.ppx

Pairwise Distances in Any Dimensions
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
midpoints.psp

Midpoints of Line Segment Pattern
plot.plotppm

Plot a plotppm Object Created by plot.ppm
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
rSSI

Simulate Simple Sequential Inhibition
spatstat-internal

Internal spatstat functions
pcf.fv

Pair Correlation Function obtained from K Function
plot.splitppp

Plot a List of Point Patterns
ppx

Multidimensional Space-Time Point Pattern
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
im

Create a Pixel Image Object
rlabel

Random Re-Labelling of Point Pattern
crossdist

Pairwise distances
connected

Connected components of an image or window
OrdThresh

Ord's Interaction model
inforder.family

Infinite Order Interaction Family
nsegments

Number of Line Segments in a Line Segment Pattern
is.multitype.ppp

Test Whether A Point Pattern is Multitype
markcorrint

Mark Correlation Integral
linearKinhom

Inhomogeneous Linear K Function
rescale

Convert dataset to another unit of length
predict.lppm

Predict Point Process Model on Linear Network
is.marked.ppp

Test Whether A Point Pattern is Marked
endpoints.psp

Endpoints of Line Segment Pattern
runifpoint3

Generate N Uniform Random Points in Three Dimensions
methods.kppm

Methods for Cluster Point Process Models
rmpoispp

Generate Multitype Poisson Point Pattern
setcov

Set Covariance of a Window
volume

Volume of an Object
summary.quad

Summarizing a Quadrature Scheme
as.matrix.im

Convert Pixel Image to Matrix or Array
runifpointx

Generate N Uniform Random Points in Any Dimensions