Learn R Programming

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

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

19,373

Version

1.23-1

License

GPL (>= 2)

Maintainer

Last Published

August 1st, 2011

Functions in spatstat (1.23-1)

Extract.splitppp

Extract or Replace Sub-Patterns
Jdot

Multitype J Function (i-to-any)
Gres

Residual G Function
K3est

K-function of a Three-Dimensional Point Pattern
Kest.fft

K-function using FFT
Kdot.inhom

Inhomogeneous Multitype K Dot Function
Extract.quad

Subset of Quadrature Scheme
Gdot

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

Multitype J Function (i-to-j)
Extract.listof

Extract or Replace Subset of a List of Things
Pairwise

Generic Pairwise Interaction model
Gfox

Foxall's Distance Functions
as.box3

Convert Data to Three-Dimensional Box
Extract.psp

Extract Subset of Line Segment Pattern
alltypes

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

Extract or Replace Subset of Point Pattern
Kmeasure

Reduced Second Moment Measure
as.rectangle

Window Frame
Kdot

Multitype K Function (i-to-any)
as.interact

Extract Interaction Structure
boxx

Multi-Dimensional Box
as.psp

Convert Data To Class psp
Gcross

Multitype Nearest Neighbour Distance Function (i-to-j)
bind.fv

Combine Function Value Tables
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
Hest

Spherical Contact Distribution Function
anemones

Beadlet Anemones Data
Kscaled

Locally Scaled K-function
Kinhom

Inhomogeneous K-function
Hardcore

The Hard Core Point Process Model
affine.psp

Apply Affine Transformation To Line Segment Pattern
by.im

Apply Function to Image Broken Down by Factor
area.owin

Area of a Window
affine

Apply Affine Transformation
Replace.im

Reset Values in Subset of Image
Saturated

Saturated Pairwise Interaction model
LennardJones

The Lennard-Jones Potential
compatible.fv

Test Whether Two Function Objects Are Compatible
ants

Harkness-Isham ants' nests data
bw.relrisk

Cross Validated Bandwidth Selection for Relative Risk Estimation
G3est

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

Multitype K Function (Cross-type)
areaGain

Difference of Disc Areas
anova.lppm

ANOVA for Fitted Point Process Models on Linear Network
allstats

Calculate four standard summary functions of a point pattern.
bounding.box.xy

Convex Hull of Points
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
Kmulti

Marked K-Function
as.im

Convert to Pixel Image
anova.ppm

ANOVA for Fitted Point Process Models
angles.psp

Orientation Angles of Line Segments
bermantest

Berman's Tests for Point Process Model
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
Kest

K-function
as.ppp

Convert Data To Class ppp
Ldot

Multitype L-function (i-to-any)
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
as.data.frame.im

Convert Pixel Image to Data Frame
as.mask

Pixel Image Approximation of a Window
crossdist.psp

Pairwise distances between two different line segment patterns
OrdThresh

Ord's Interaction model
convexhull.xy

Convex Hull of Points
as.tess

Convert Data To Tessellation
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
distmap

Distance Map
Strauss

The Strauss Point Process Model
is.ppp

Test Whether An Object Is A Point Pattern
ord.family

Ord Interaction Process Family
crossdist

Pairwise distances
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
Gcom

Model Compensator of Nearest Neighbour Function
envelope.pp3

Simulation Envelopes of Summary Function for 3D Point Pattern
data.ppm

Extract Original Data from a Fitted Point Process Model
Poisson

Poisson Point Process Model
connected

Connected components of an image or window
diameter.box3

Geometrical Calculations for Three-Dimensional Box
append.psp

Combine Two Line Segment Patterns
density.splitppp

Kernel Smoothed Intensity of Split Point Pattern
distmap.psp

Distance Map of Line Segment Pattern
cells

Biological Cells Point Pattern
Kmodel

K function of a model
as.owin

Convert Data To Class owin
as.matrix.im

Convert Pixel Image to Matrix or Array
fv

Create a Function Value Table
compatible.fasp

Test Whether Two Function Arrays Are Compatible
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
eval.im

Evaluate Expression Involving Pixel Images
centroid.owin

Centroid of a window
endpoints.psp

Endpoints of Line Segment Pattern
crossdist.default

Pairwise distances between two different sets of points
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
formula.ppm

Model Formulae for Gibbs Point Process Models
japanesepines

Japanese Pines Point Pattern
fv.object

Function Value Table
bdist.pixels

Distance to Boundary of Window
pairwise.family

Pairwise Interaction Process Family
bdist.points

Distance to Boundary of Window
compareFit

Residual Diagnostics for Multiple Fitted Models
convexhull

Convex Hull
border

Border Region of a Window
collapse.fv

Collapse Several Function Tables into One
blur

Apply Gaussian Blur to a Pixel Image
hyperframe

Hyper Data Frame
fasp.object

Function Arrays for Spatial Patterns
StraussHard

The Strauss / Hard Core Point Process Model
model.frame.ppm

Extract the Environment of a Point Process Model
density.ppp

Kernel Smoothed Intensity of Point Pattern
nztrees

New Zealand Trees Point Pattern
linearKinhom

Inhomogeneous Linear K Function
eval.fv

Evaluate Expression Involving Functions
diameter.owin

Diameter of a Window
hamster

Aherne's hamster tumour data
clickjoin

Interactively join vertices on a plot
im

Create a Pixel Image Object
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
pointsOnLines

Place Points Evenly Along Specified Lines
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
progressreport

Print Progress Reports
rmh

Simulate point patterns using the Metropolis-Hastings algorithm.
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
distfun

Distance Map as a Function
compatible.im

Test Whether Two Pixel Images Are Compatible
default.rmhcontrol

Set Default Control Parameters for Metropolis-Hastings Algorithm.
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
demopat

Artificial Data Point Pattern
im.object

Class of Images
effectfun

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

California Redwoods Point Pattern (Ripley's Subset)
finpines

Pine saplings in Finland.
cut.im

Convert Pixel Image from Numeric to Factor
complement.owin

Take Complement of a Window
is.owin

Test Whether An Object Is A Window
distmap.ppp

Distance Map of Point Pattern
is.stationary

Recognise Stationary and Poisson Point Process Models
logLik.slrm

Loglikelihood of Spatial Logistic Regression
gridweights

Compute Quadrature Weights Based on Grid Counts
is.empty

Test Whether An Object Is Empty
bronzefilter

Bronze gradient filter data
inforder.family

Infinite Order Interaction Family
relrisk

Nonparametric Estimate of Spatially-Varying Relative Risk
dilated.areas

Areas of Morphological Dilations
methods.linnet

Methods for Linear Networks
clip.infline

Intersect Infinite Straight Lines with a Window
pppmatching.object

Class of Point Matchings
bramblecanes

Hutchings' Bramble Canes data
print.ppp

Print Brief Details of a Point Pattern Dataset
erosion

Morphological Erosion
ewcdf

Weighted Empirical Cumulative Distribution Function
inside.owin

Test Whether Points Are Inside A Window
crossdist.ppp

Pairwise distances between two different point patterns
quadscheme

Generate a Quadrature Scheme from a Point Pattern
linearpcfinhom

Inhomogeneous Linear Pair Correlation Function
volume

Volume of an Object
model.images

Compute Images of Constructed Covariates
intersect.tess

Intersection of Two Tessellations
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
chorley

Chorley-Ribble Cancer Data
closing

Morphological Closing
DiggleGratton

Diggle-Gratton model
mean.im

Maximum, Minimum, Mean, Median, Range or Sum of Pixel Values in an Image
clarkevans.test

Clark and Evans Test
expand.owin

Expand Window By Factor
is.multitype.ppp

Test Whether A Point Pattern is Multitype
rlabel

Random Re-Labelling of Point Pattern
interp.im

Interpolate a Pixel Image
idw

Inverse-distance weighted smoothing of observations at irregular points
latest.news

Print News About Latest Version of Package
intersect.owin

Intersection, Union or Set Subtraction of Two Windows
ripras

Estimate window from points alone
heather

Diggle's Heather Data
rmhmodel.default

Build Point Process Model for Metropolis-Hastings Simulation.
coords

Extract or Change Coordinates of a Spatial or Spatiotemporal Point Pattern
fitted.ppm

Fitted Conditional Intensity for Point Process Model
lengths.psp

Lengths of Line Segments
matclust.estK

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

Integral of a Pixel Image
is.im

Test Whether An Object Is A Pixel Image
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
gridcentres

Rectangular grid of points
iplot

Point and Click Interface for Displaying a Point Pattern
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
flu

Influenza Virus Proteins
linearpcf

Linear Pair Correlation Function
runifpointx

Generate N Uniform Random Points in Any Dimensions
rescale.ppp

Convert Point Pattern to Another Unit of Length
plot.hyperframe

Plot Entries in a Hyperframe
is.subset.owin

Determine Whether One Window is Contained In Another
ppm

Fit Point Process Model to Data
ganglia

Beta Ganglion Cells in Cat Retina, Old Version
is.multitype.ppm

Test Whether A Point Process Model is Multitype
project2segment

Move Point To Nearest Line
localKinhom

Inhomogeneous Neighbourhood Density Function
humberside

Humberside Data on Childhood Leukaemia and Lymphoma
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
fryplot

Fry Plot of Point Pattern
owin

Create a Window
nndist

Nearest neighbour distances
nnclean

Nearest Neighbour Clutter Removal
model.matrix.ppm

Extract Design Matrix from Point Process Model
Gest

Nearest Neighbour Distance Function G
methods.lpp

Methods for Point Patterns on a Linear Network
lpp

Create Point Pattern on Linear Network
levelset

Level Set of a Pixel Image
MultiStrauss

The Multitype Strauss Point Process Model
lppm

Fit Point Process Model to Point Pattern on Linear Network
nearestsegment

Find Line Segment Nearest to Each Point
plot.splitppp

Plot a List of Point Patterns
MultiHard

The Multitype Hard Core Point Process Model
smooth.ppp

Spatial smoothing of observations at irregular points
methods.lppm

Methods for Fitted Point Process Models on a Linear Network
infline

Infinite Straight Lines
lgcp.estpcf

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
kstest.ppm

Kolmogorov-Smirnov Test for Point Process Model
perimeter

Perimeter Length of Window
amacrine

Hughes' Amacrine Cell Data
nbfires

Point Patterns of New Brunswick Forest Fires
istat

Point and Click Interface for Exploratory Analysis of Point Pattern
update.kppm

Update a Fitted Cluster Point Process Model
matchingdist

Distance for a Point Pattern Matching
kaplan.meier

Kaplan-Meier Estimator using Histogram Data
spatstat-internal

Internal spatstat functions
osteo

Osteocyte Lacunae Data: Replicated Three-Dimensional Point Patterns
pairsat.family

Saturated Pairwise Interaction Point Process Family
print.ppm

Print a Fitted Point Process Model
lurking

Lurking variable plot
pixellate.psp

Convert Line Segment Pattern to Pixel Image
bounding.box

Bounding Box of a Window or Point Pattern
plot.ppm

plot a Fitted Point Process Model
predict.lppm

Predict Point Process Model on Linear Network
markcorrint

Mark Correlation Integral
marks

Marks of a Point Pattern
murchison

Murchison gold deposits
pairdist.ppp

Pairwise distances
methods.rhohat

Methods for Intensity Functions of Spatial Covariate
methods.pp3

Methods for three-dimensional point patterns
plot.linnet

Plot a linear network
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
nncross

Nearest Neighbours Between Two Patterns
ppp.object

Class of Point Patterns
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
pairdist.default

Pairwise distances
ppm.object

Class of Fitted Point Process Models
pairdist.pp3

Pairwise distances in Three Dimensions
plot.linim

Plot Pixel Image on Linear Network
rMosaicSet

Mosaic Random Set
pppdist

Distance Between Two Point Patterns
pp3

Three Dimensional Point Pattern
rmhmodel.list

Define Point Process Model for Metropolis-Hastings Simulation.
localpcf

Local pair correlation function
summary.listof

Summary of a List of Things
msr

Signed or Vector-Valued Measure
rpoispp3

Generate Poisson Point Pattern in Three Dimensions
rpoint

Generate N Random Points
pcf.fv

Pair Correlation Function obtained from K Function
ppx

Multidimensional Space-Time Point Pattern
quadratcount

Quadrat counting for a point pattern
summary.owin

Summary of a Spatial Window
periodify

Make Periodic Copies of a Spatial Pattern
quad.object

Class of Quadrature Schemes
square

Square Window
opening

Morphological Opening
bw.stoyan

Stoyan's Rule of Thumb for Bandwidth Selection
concatxy

Concatenate x,y Coordinate Vectors
rshift.splitppp

Randomly Shift a List of Point Patterns
unitname

Name for Unit of Length
plot.msr

Plot a Signed or Vector-Valued Measure
pairdist.lpp

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

Scatterplot Matrix for Pixel Images
slrm

Spatial Logistic Regression
npfun

Dummy Function Returns Number of Points
mincontrast

Method of Minimum Contrast
ponderosa

Ponderosa Pine Tree Point Pattern
ppp

Create a Point Pattern
pixellate.owin

Convert Window to Pixel Image
plot.kstest

Plot a Spatial Kolmogorov-Smirnov Test
print.owin

Print Brief Details of a Spatial Window
corners

Corners of a rectangle
psp.object

Class of Line Segment Patterns
pcf.ppp

Pair Correlation Function of Point Pattern
bdist.tiles

Distance to Boundary of Window
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
rotate.psp

Rotate a Line Segment Pattern
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
runiflpp

Uniform Random Points on a Linear Network
Emark

Diagnostics for random marking
smooth.msr

Smooth a Signed or Vector-Valued Measure
pppmatching

Create a Point Matching
pixellate.ppp

Convert Point Pattern to Pixel Image
print.im

Print Brief Details of an Image
tile.areas

Compute Areas of Tiles in a Tessellation
rMosaicField

Mosaic Random Field
deltametric

Delta Metric
selfcrossing.psp

Crossing Points in a Line Segment Pattern
setcov

Set Covariance of a Window
Extract.fasp

Extract Subset of Function Array
simulate.kppm

Simulate a Fitted Cluster Point Process Model
rMaternI

Simulate Matern Model I
summary.ppp

Summary of a Point Pattern Dataset
rStrauss

Perfect Simulation of the Strauss Process
quantile.im

Sample Quantiles of Pixel Image
rcell

Simulate Baddeley-Silverman Cell Process
runifpointOnLines

Generate N Uniform Random Points On Line Segments
Extract.fv

Extract Subset of Function Values
rjitter

Random Perturbation of a Point Pattern
plot.colourmap

Plot a Colour Map
residualspaper

Data and Code From JRSS Discussion Paper on Residuals
rmh.ppm

Simulate from a Fitted Point Process Model
split.im

Divide Image Into Sub-images
urkiola

Urkiola Woods Point Pattern
plot.slrm

Plot a Fitted Spatial Logistic Regression
pixellate

Convert Spatial Object to Pixel Image
Iest

Estimate the I-function
rescue.rectangle

Convert Window Back To Rectangle
rshift.ppp

Randomly Shift a Point Pattern
Lest

L-function
pixelquad

Quadrature Scheme Based on Pixel Grid
Extract.im

Extract Subset of Image
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
methods.distfun

Methods for Distance Functions
spatstat.options

Internal Options in Spatstat Package
disc

Circular Window
plot.tess

Plot a tessellation
quadrat.test

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

Diameter of an Object
Extract.msr

Extract Subset of Signed or Vector Measure
rpoisppx

Generate Poisson Point Pattern in Any Dimensions
superimpose

Superimpose Several Geometric Patterns
rescale

Convert dataset to another unit of length
F3est

Empty Space Function of a Three-Dimensional Point Pattern
print.quad

Print a Quadrature Scheme
rNeymanScott

Simulate Neyman-Scott Process
rmhstart

Determine Initial State for Metropolis-Hastings Simulation.
shapley

Galaxies in the Shapley Supercluster
quadrat.test.splitppp

Chi-Squared Test of CSR for Split Point Pattern
runifdisc

Generate N Uniform Random Points in a Disc
rGaussPoisson

Simulate Gauss-Poisson Process
rshift.psp

Randomly Shift a Line Segment Pattern
runifpoint

Generate N Uniform Random Points
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
tiles

Extract List of Tiles in a Tessellation
shift.im

Apply Vector Translation To Pixel Image
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
Fiksel

The Fiksel Interaction
swedishpines

Swedish Pines Point Pattern
simdat

Simulated Point Pattern
summary.quad

Summarizing a Quadrature Scheme
identify.ppp

Identify Points in a Point Pattern
Fest

Estimate the empty space function F
solutionset

Evaluate Logical Expression Involving Pixel Images and Return Region Where Expression is True
raster.x

Cartesian Coordinates for a Pixel Raster
rotate.owin

Rotate a Window
vcov.kppm

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

Generate Poisson Point Pattern
is.multitype

Test whether Object is Multitype
summary.im

Summarizing a Pixel Image
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
as.hyperframe

Convert Data to Hyperframe
unmark

Remove Marks
summary.splitppp

Summary of a Split Point Pattern
Softcore

The Soft Core Point Process Model
plot.kppm

Plot a fitted cluster point process
rMaternII

Simulate Matern Model II
zapsmall.im

Rounding of Pixel Values
plot.bermantest

Plot Result of Berman Test
rknn

Theoretical Distribution of Nearest Neighbour Distance
by.ppp

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

Convert and Compare Colours in Different Formats
is.marked

Test Whether Marks Are Present
marktable

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

The Area Interaction Point Process Model
crossing.psp

Crossing Points of Two Line Segment Patterns
redwoodfull

California Redwoods Point Pattern (Entire Dataset)
Jest

Estimate the J-function
sharpen

Data Sharpening of Point Pattern
Jmulti

Marked J Function
rmhmodel

Define Point Process Model for Metropolis-Hastings Simulation.
Kres

Residual K Function
rstrat

Simulate Stratified Random Point Pattern
box3

Three-Dimensional Box
betacells

Beta Ganglion Cells in Cat Retina
markvario

Mark Variogram
shift.owin

Apply Vector Translation To Window
clarkevans

Clark and Evans Aggregation Index
Kcross.inhom

Inhomogeneous Cross K Function
rhohat

Smoothing Estimate of Covariate Transformation
Lcross

Multitype L-function (cross-type)
methods.boxx

Methods for Multi-Dimensional Box
nearest.raster.point

Find Pixel Nearest to a Given Point
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
dirichlet.weights

Compute Quadrature Weights Based on Dirichlet Tessellation
nnwhich

Nearest neighbour
rpoisppOnLines

Generate Poisson Point Pattern on Line Segments
smooth.fv

Apply Smoothing to Function Values
runifpoint3

Generate N Uniform Random Points in Three Dimensions
circumradius

Circumradius and Diameter of a Linear Network
nndist.psp

Nearest neighbour distances between line segments
nndist.pp3

Nearest neighbour distances in three dimensions
with.fv

Evaluate an Expression in a Function Table
persp.im

Perspective Plot of Pixel Image
Linhom

L-function
pcf.fasp

Pair Correlation Function obtained from array of K functions
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
pairdist

Pairwise distances
pcfcross

Multitype pair correlation function (cross-type)
clickpoly

Interactively Define a Polygon
which.max.im

Identify Pixelwise Maximum of Several Pixel Images
pairdist.ppx

Pairwise Distances in Any Dimensions
delaunay

Delaunay Triangulation of Point Pattern
envelope

Simulation Envelopes of Summary Function
plot.ppp

plot a Spatial Point Pattern
colourmap

Colour Lookup Tables
eroded.areas

Areas of Morphological Erosions
eem

Exponential Energy Marks
gpc2owin

Convert Polygonal Region into Different Format
rescale.im

Convert Pixel Image to Another Unit of Length
shift.psp

Apply Vector Translation To Line Segment Pattern
plot.im

Plot a Pixel Image
psp

Create a Line Segment Pattern
reduced.sample

Reduced Sample Estimator using Histogram Data
density.psp

Kernel Smoothing of Line Segment Pattern
is.convex

Test Whether a Window is Convex
summary.ppm

Summarizing a Fitted Point Process Model
shift.ppp

Apply Vector Translation To Point Pattern
logLik.ppm

Log Likelihood and AIC for Point Process Model
rescale.owin

Convert Window to Another Unit of Length
markconnect

Mark Connection Function
rgbim

Create Colour-Valued Pixel Image
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
multiplicity.ppp

Count Multiplicity of Duplicate Points
kppm

Fit Cluster or Cox Point Process Model
linim

Create Pixel Image on Linear Network
pcfdot

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

Number of Points in a Point Pattern
rmhcontrol

Set Control Parameters for Metropolis-Hastings Algorithm.
rpoisline

Generate Poisson Random Line Process
update.ppm

Update a Fitted Point Process Model
plot.fv

Plot Function Values
markcorr

Mark Correlation Function
plot.envelope

Plot a Simulation Envelope
plot.listof

Plot a List of Things
plot.psp

plot a Spatial Line Segment Pattern
methods.box3

Methods for Three-Dimensional Box
pcf

Pair Correlation Function
vertices

Vertices of a Window
spokes

Spokes pattern of dummy points
miplot

Morishita Index Plot
rThomas

Simulate Thomas Process
residuals.ppm

Residuals for Fitted Point Process Model
rSSI

Simulate Simple Sequential Inhibition
rmpoispp

Generate Multitype Poisson Point Pattern
rMatClust

Simulate Matern Cluster Process
rotate.ppp

Rotate a Point Pattern
rshift

Random Shift
rotate

Rotate
scanpp

Read Point Pattern From Data File
rmpoint

Generate N Random Multitype Points
unique.ppp

Extract Unique Points from a Spatial Point Pattern
rpoislpp

Poisson Point Process on a Linear Network
summary.psp

Summary of a Line Segment Pattern Dataset
spatstat-package

The Spatstat Package
tess

Create a Tessellation
trim.rectangle

Cut margins from rectangle
varblock

Estimate Variance of Summary Statistic by Subdivision
Ldot.inhom

Inhomogeneous Multitype L Dot Function
Lcross.inhom

Inhomogeneous Cross Type L Function
cut.ppp

Classify Points in a Point Pattern
default.dummy

Generate a Default Pattern of Dummy Points
discretise

Safely Convert Point Pattern Window to Binary Mask
eval.fasp

Evaluate Expression Involving Function Arrays
identify.psp

Identify Segments in a Line Segment Pattern
linnet

Create a Linear Network
lut

Lookup Tables
nsegments

Number of Line Segments in a Line Segment Pattern
nncorr

Nearest-Neighbour Correlation Indices of Marked Point Pattern
owin.object

Class owin
pairdist.psp

Pairwise distances between line segments
pcf3est

Pair Correlation Function of a Three-Dimensional Point Pattern
nnwhich.ppx

Nearest Neighbours in Any Dimensions
plot.quad

plot a Spatial Quadrature Scheme
rLGCP

Simulate Log-Gaussian Cox Process
rsyst

Simulate systematic random point pattern
shift

Apply Vector Translation
simplenet

Simple Example of Linear Network
simplify.owin

Approximate a Polygon by a Simpler Polygon
stieltjes

Compute Integral of Function Against Cumulative Distribution
suffstat

Sufficient Statistic of Point Process Model
Gmulti

Marked Nearest Neighbour Distance Function
Geyer

Geyer's Saturation Point Process Model
areaLoss

Difference of Disc Areas
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
as.polygonal

Convert a Window to a Polygonal Window
bei

Tropical rain forest trees
chicago

Chicago Street Crime Data
clickppp

Interactively Add Points
contour.im

Contour plot of pixel image
copper

Berman-Huntington points and lines data
spatstat-deprecated

Deprecated spatstat functions
dirichlet

Dirichlet Tessellation of Point Pattern
distmap.owin

Distance Map of Window
is.marked.ppm

Test Whether A Point Process Model is Marked
localK

Neighbourhood density function
longleaf

Longleaf Pines Point Pattern
marks.psp

Marks of a Line Segment Pattern
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
lgcp.estK

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

Nearest neighbours in three dimensions
pcfcross.inhom

Inhomogeneous Multitype Pair Correlation Function (Cross-Type)
plot.plotppm

Plot a plotppm Object Created by plot.ppm
plot.pp3

Plot a three-dimensional point pattern
quadrats

Divide Region into Quadrats
rmh.default

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

Rescale Data to Lie Between Specified Limits
whist

Weighted Histogram
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
Kcom

Model Compensator of K Function
Ord

Generic Ord Interaction model
adaptive.density

Intensity Estimate of Point Pattern Using Tessellation
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
as.function.fv

Convert Function Value Table to Function
coef.ppm

Coefficients of Fitted Point Process Model
default.expand

Compute Expansion Window for Simulation
dilation

Morphological Dilation
discpartarea

Area of Part of Disc
envelope.lpp

Envelope for Point Patterns on Linear Network
hist.im

Histogram of Pixel Values in an Image
harmonic

Basis for Harmonic Functions
incircle

Find Largest Circle Inside Window
km.rs

Kaplan-Meier and Reduced Sample Estimator using Histograms
lansing

Lansing Woods Point Pattern
midpoints.psp

Midpoints of Line Segment Pattern
methods.kppm

Methods for Cluster Point Process Models
pcfinhom

Inhomogeneous Pair Correlation Function
plot.owin

Plot a Spatial Window
predict.kppm

Prediction from a Fitted Cluster Point Process Model
profilepl

Profile Maximum Pseudolikelihood
quadratresample

Resample a Point Pattern by Resampling Quadrats
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
rthin

Random Thinning
split.ppp

Divide Point Pattern into Sub-patterns
spruces

Spruces Point Pattern
plot.fasp

Plot a Function Array
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
linearK

Linear K Function
Extract.tess

Extract or Replace Subset of Tessellation
affine.ppp

Apply Affine Transformation To Point Pattern
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
BadGey

Hybrid Geyer Point Process Model
reach

Interaction Distance of a Point Process
pcfdot.inhom

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

Window in Shape of Letter R
print.psp

Print Brief Details of a Line Segment Pattern Dataset
is.ppm

Test Whether An Object Is A Fitted Point Process Model
rlinegrid

Generate grid of parallel lines with random displacement
is.marked.ppp

Test Whether A Point Pattern is Marked
rpoislinetess

Poisson Line Tessellation
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
union.quad

Union of Data and Dummy Points
affine.owin

Apply Affine Transformation To Window
predict.ppm

Prediction from a Fitted Point Process Model
lineardisc

Compute Disc of Given Radius in Linear Network