Learn R Programming

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

spatstat.geom (version 2.1-0)

Geometrical Functionality of the 'spatstat' Family

Description

Defines types of spatial data such as point patterns, mainly in two dimensions, but also in higher dimensions. Provides class support, and functions for geometrical operations on spatial data, used in the 'spatstat' family of packages. Excludes spatial data on a linear network, which are covered by the separate package 'spatstat.linnet'.

Copy Link

Version

Install

install.packages('spatstat.geom')

Monthly Downloads

66,163

Version

2.1-0

License

GPL (>= 2)

Maintainer

Last Published

April 15th, 2021

Functions in spatstat.geom (2.1-0)

Extract.ppx

Extract Subset of Multidimensional Point Pattern
Extract.owin

Extract Subset of Window
Extract.anylist

Extract or Replace Subset of a List of Things
Extract.listof

Extract or Replace Subset of a List of Things
Extract.psp

Extract Subset of Line Segment Pattern
Extract.layered

Extract or Replace Subset of a Layered Object
Extract.hyperframe

Extract or Replace Subset of Hyperframe
Extract.ppp

Extract or Replace Subset of Point Pattern
Extract.quad

Subset of Quadrature Scheme
Extract.im

Extract Subset of Image
Extract.solist

Extract or Replace Subset of a List of Spatial Objects
WindowOnly

Extract Window of Spatial Object
Window

Extract or Change the Window of a Spatial Object
add.texture

Fill Plot With Texture
affine

Apply Affine Transformation
affine.tess

Apply Geometrical Transformation To Tessellation
angles.psp

Orientation Angles of Line Segments
Extract.splitppp

Extract or Replace Sub-Patterns
Math.imlist

S3 Group Generic methods for List of Images
affine.ppp

Apply Affine Transformation To Point Pattern
Math.im

S3 Group Generic methods for images
affine.psp

Apply Affine Transformation To Line Segment Pattern
Extract.tess

Extract or Replace Subset of Tessellation
Frame

Extract or Change the Containing Rectangle of a Spatial Object
affine.im

Apply Affine Transformation To Pixel Image
affine.owin

Apply Affine Transformation To Window
anylist

List of Objects
anyNA.im

Check Whether Image Contains NA Values
Replace.im

Reset Values in Subset of Image
MinkowskiSum

Minkowski Sum of Windows
append.psp

Combine Two Line Segment Patterns
as.boxx

Convert Data to Multi-Dimensional Box
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
as.data.frame.im

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

Convert Window to Data Frame
area.owin

Area of a Window
areaGain

Difference of Disc Areas
as.box3

Convert Data to Three-Dimensional Box
areaLoss

Difference of Disc Areas
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
as.function.tess

Convert a Tessellation to a Function
as.function.owin

Convert Window to Indicator Function
as.im

Convert to Pixel Image
as.layered

Convert Data To Layered Object
as.function.im

Convert Pixel Image to Function of Coordinates
as.psp

Convert Data To Class psp
as.ppp

Convert Data To Class ppp
as.matrix.owin

Convert Pixel Image to Matrix
as.matrix.im

Convert Pixel Image to Matrix or Array
as.data.frame.tess

Convert Tessellation to Data Frame
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
as.hyperframe

Convert Data to Hyperframe
as.mask

Pixel Image Approximation of a Window
bounding.box.xy

Convex Hull of Points
boundingbox

Bounding Box of a Window, Image, or Point Pattern
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
bdist.tiles

Distance to Boundary of Window
bdist.points

Distance to Boundary of Window
by.im

Apply Function to Image Broken Down by Factor
boxx

Multi-Dimensional Box
as.solist

Convert List of Two-Dimensional Spatial Objects
as.rectangle

Window Frame
as.tess

Convert Data To Tessellation
clickpoly

Interactively Define a Polygon
clickppp

Interactively Add Points
bdist.pixels

Distance to Boundary of Window
box3

Three-Dimensional Box
clickbox

Interactively Define a Rectangle
compatible

Test Whether Objects Are Compatible
colouroutputs

Extract or Assign Colour Values in a Colour Map
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
boundingcircle

Smallest Enclosing Circle
clickdist

Interactively Measure Distance
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
by.ppp

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

Convex Hull of Points
colourtools

Convert and Compare Colours in Different Formats
convexhull

Convex Hull
connected.ppp

Connected Components of a Point Pattern
connected.tess

Connected Components of Tiles of a Tessellation
compatible.im

Test Whether Pixel Images Are Compatible
coords

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

Morphological Closing
colourmap

Colour Lookup Tables
complement.owin

Take Complement of a Window
as.polygonal

Convert a Window to a Polygonal Window
as.owin

Convert Data To Class owin
crossdist.default

Pairwise distances between two different sets of points
crossdist

Pairwise distances
covering

Cover Region with Discs
diameter

Diameter of an Object
diameter.box3

Geometrical Calculations for Three-Dimensional Box
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
border

Border Region of a Window
closepairs

Close Pairs of Points
corners

Corners of a rectangle
beachcolours

Create Colour Scheme for a Range of Numbers
clip.infline

Intersect Infinite Straight Lines with a Window
disc

Circular Window
centroid.owin

Centroid of a window
default.dummy

Generate a Default Pattern of Dummy Points
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
concatxy

Concatenate x,y Coordinate Vectors
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
discpartarea

Area of Part of Disc
dilated.areas

Areas of Morphological Dilations
delaunay

Delaunay Triangulation of Point Pattern
dilation

Morphological Dilation
discs

Union of Discs
discretise

Safely Convert Point Pattern Window to Binary Mask
distmap.ppp

Distance Map of Point Pattern
cut.ppp

Classify Points in a Point Pattern
dirichletWeights

Compute Quadrature Weights Based on Dirichlet Tessellation
connected

Connected components
cut.im

Convert Pixel Image from Numeric to Factor
dirichletVertices

Vertices and Edges of Dirichlet Tessellation
convolve.im

Convolution of Pixel Images
convexify

Weil's Convexifying Operation
distmap.owin

Distance Map of Window
diameter.owin

Diameter of a Window
closetriples

Close Triples of Points
closepairs.pp3

Close Pairs of Points in 3 Dimensions
edges2vees

List Dihedral Triples in a Graph
contour.im

Contour plot of pixel image
dirichletAreas

Compute Areas of Tiles in Dirichlet Tessellation
extrapolate.psp

Extrapolate Line Segments to Obtain Infinite Lines
edges2triangles

List Triangles in a Graph
dirichlet

Dirichlet Tessellation of Point Pattern
ewcdf

Weighted Empirical Cumulative Distribution Function
contour.imlist

Array of Contour Plots
crossdist.ppp

Pairwise distances between two different point patterns
delaunayDistance

Distance on Delaunay Triangulation
crossdist.ppx

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

Invoke Text Editor on Spatial Data
harmonise

Make Objects Compatible
crossdist.psp

Pairwise distances between two different line segment patterns
edit.hyperframe

Invoke Text Editor on Hyperframe
crossing.psp

Crossing Points of Two Line Segment Patterns
gridcentres

Rectangular grid of points
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
edges

Extract Boundary Edges of a Window.
eroded.areas

Areas of Morphological Erosions
deltametric

Delta Metric
hotrod

Heat Kernel for a One-Dimensional Rod
inside.boxx

Test Whether Points Are Inside A Multidimensional Box
hyperframe

Hyper Data Frame
distmap.psp

Distance Map of Line Segment Pattern
headtail

First or Last Part of a Spatial Pattern
hextess

Hexagonal Grid or Tessellation
erosion

Morphological Erosion by a Disc
domain

Extract the Domain of any Spatial Object
intensity

Intensity of a Dataset or a Model
infline

Infinite Straight Lines
integral.im

Integral of a Pixel Image
incircle

Find Largest Circle Inside Window
hist.funxy

Histogram of Values of a Spatial Function
flipxy

Exchange X and Y Coordinates
hist.im

Histogram of Pixel Values in an Image
gridweights

Compute Quadrature Weights Based on Grid Counts
is.lpp

Test Whether An Object Is A Point Pattern on a Linear Network
fardist

Farthest Distance to Boundary of Window
harmonise.im

Make Pixel Images Compatible
is.subset.owin

Determine Whether One Window is Contained In Another
interp.im

Interpolate a Pixel Image
layered

Create List of Plotting Layers
is.marked

Test Whether Marks Are Present
interp.colourmap

Interpolate smoothly between specified colours
distfun

Distance Map as a Function
distmap

Distance Map
intensity.psp

Empirical Intensity of Line Segment Pattern
inside.owin

Test Whether Points Are Inside A Window
erosionAny

Morphological Erosion of Windows
grow.boxx

Add margins to box in any dimension
grow.rectangle

Add margins to rectangle
eval.im

Evaluate Expression Involving Pixel Images
fourierbasis

Fourier Basis Functions
endpoints.psp

Endpoints of Line Segment Pattern
ellipse

Elliptical Window.
identify.ppp

Identify Points in a Point Pattern
has.close

Check Whether Points Have Close Neighbours
intersect.tess

Intersection of Two Tessellations
im.object

Class of Images
harmonise.owin

Make Windows Compatible
intensity.quadratcount

Intensity Estimates Using Quadrat Counts
imcov

Spatial Covariance of a Pixel Image
is.convex

Test Whether a Window is Convex
is.empty

Test Whether An Object Is Empty
im.apply

Apply Function Pixelwise to List of Images
funxy

Spatial Function Class
intersect.owin

Intersection, Union or Set Subtraction of Windows
intersect.boxx

Intersection Of Boxes Of Arbitrary Dimension
im

Create a Pixel Image Object
is.im

Test Whether An Object Is A Pixel Image
marks.psp

Marks of a Line Segment Pattern
intensity.ppp

Empirical Intensity of Point Pattern
intensity.ppx

Intensity of a Multidimensional Space-Time Point Pattern
nestsplit

Nested Split
is.connected

Determine Whether an Object is Connected
identify.psp

Identify Segments in a Line Segment Pattern
invoke.symbolmap

Plot Data Using Graphics Symbol Map
is.multitype.ppp

Test Whether A Point Pattern is Multitype
layout.boxes

Generate a Row or Column Arrangement of Rectangles.
layerplotargs

Extract or Replace the Plot Arguments of a Layered Object
methods.unitname

Methods for Units
is.ppp

Test Whether An Object Is A Point Pattern
is.connected.ppp

Determine Whether a Point Pattern is Connected
is.rectangle

Determine Type of Window
is.marked.ppp

Test Whether A Point Pattern is Marked
methods.boxx

Methods for Multi-Dimensional Box
marks.tess

Marks of a Tessellation
mergeLevels

Merge Levels of a Factor
marks

Marks of a Point Pattern
is.linim

Test Whether an Object is a Pixel Image on a Linear Network
methods.box3

Methods for Three-Dimensional Box
lut

Lookup Tables
is.multitype

Test whether Object is Multitype
is.owin

Test Whether An Object Is A Window
markstat

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

Methods for Layered Objects
methods.funxy

Methods for Spatial Functions
lengths_psp

Lengths of Line Segments
nndist.pp3

Nearest neighbour distances in three dimensions
matchingdist

Distance for a Point Pattern Matching
nndist

Nearest neighbour distances
methods.distfun

Geometrical Operations for Distance Functions
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
levelset

Level Set of a Pixel Image
nobjects

Count Number of Geometrical Objects in a Spatial Dataset
npoints

Number of Points in a Point Pattern
opening

Morphological Opening
overlap.owin

Compute Area of Overlap
pixelcentres

Extract Pixel Centres as Point Pattern
nnwhich.pp3

Nearest neighbours in three dimensions
nncross.pp3

Nearest Neighbours Between Two Patterns in 3D
nncross.ppx

Nearest Neighbours Between Two Patterns in Any Dimensions
nearestValue

Image of Nearest Defined Pixel Value
perspPoints

Draw Points or Lines on a Surface Viewed in Perspective
maxnndist

Compute Minimum or Maximum Nearest-Neighbour Distance
nearestsegment

Find Line Segment Nearest to Each Point
nnmark

Mark of Nearest Neighbour
pairdist.default

Pairwise distances
nncross

Nearest Neighbours Between Two Patterns
midpoints.psp

Midpoints of Line Segment Pattern
mean.im

Mean and Median of Pixel Values in an Image
pixelquad

Quadrature Scheme Based on Pixel Grid
owin.object

Class owin
persp.im

Perspective Plot of Pixel Image
owin

Create a Window
pixellate.ppp

Convert Point Pattern to Pixel Image
pixellate.psp

Convert Line Segment Pattern to Pixel Image
nndist.psp

Nearest neighbour distances between line segments
plot.anylist

Plot a List of Things
periodify

Make Periodic Copies of a Spatial Pattern
nnwhich

Nearest neighbour
nvertices

Count Number of Vertices
nsegments

Number of Line Segments in a Line Segment Pattern
pairdist.ppp

Pairwise distances
pairdist.pp3

Pairwise distances in Three Dimensions
pixellate

Convert Spatial Object to Pixel Image
nnwhich.ppx

Nearest Neighbours in Any Dimensions
plot.quad

Plot a Spatial Quadrature Scheme
plot.ppp

plot a Spatial Point Pattern
plot.pp3

Plot a Three-Dimensional Point Pattern
plot.psp

plot a Spatial Line Segment Pattern
plot.hyperframe

Plot Entries in a Hyperframe
pairdist.ppx

Pairwise Distances in Any Dimensions
plot.colourmap

Plot a Colour Map
plot.pppmatching

Plot a Point Matching
plot.textstring

Plot a Text String
ppp.object

Class of Point Patterns
ppp

Create a Point Pattern
plot.quadratcount

Plot Quadrat Counts
plot.texturemap

Plot a Texture Map
pixellate.owin

Convert Window to Pixel Image
plot.layered

Layered Plot
plot.onearrow

Plot an Arrow
plot.listof

Plot a List of Things
print.owin

Print Brief Details of a Spatial Window
plot.owin

Plot a Spatial Window
print.im

Print Brief Details of an Image
print.quad

Print a Quadrature Scheme
progressreport

Print Progress Reports
pp3

Three Dimensional Point Pattern
pppmatching

Create a Point Matching
pppdist

Distance Between Two Point Patterns
polartess

Tessellation Using Polar Coordinates
plot.tess

Plot a Tessellation
plot.symbolmap

Plot a Graphics Symbol Map
pairdist.psp

Pairwise distances between line segments
perimeter

Perimeter Length of Window
quad.object

Class of Quadrature Schemes
print.psp

Print Brief Details of a Line Segment Pattern Dataset
methods.pp3

Methods for three-dimensional point patterns
quadscheme.logi

Generate a Logistic Regression Quadrature Scheme from a Point Pattern
print.ppp

Print Brief Details of a Point Pattern Dataset
quadratcount

Quadrat counting for a point pattern
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
nnmap

K-th Nearest Point Map
multiplicity.ppp

Count Multiplicity of Duplicate Points
nearest.raster.point

Find Pixel Nearest to a Given Point
relevel.im

Reorder Levels of a Factor-Valued Image or Pattern
quantess

Quantile Tessellation
nnfun

Nearest Neighbour Index Map as a Function
psp

Create a Line Segment Pattern
requireversion

Require a Specific Version of a Package
rescale.psp

Convert Line Segment Pattern to Another Unit of Length
rjitter

Random Perturbation of a Point Pattern
padimage

Pad the Border of a Pixel Image
psp.object

Class of Line Segment Patterns
pairdist

Pairwise distances
plot.imlist

Plot a List of Images
plot.im

Plot a Pixel Image
reflect

Reflect In Origin
rlinegrid

Generate grid of parallel lines with random displacement
plot.solist

Plot a List of Spatial Objects
quasirandom

Quasirandom Patterns
rQuasi

Generate Quasirandom Point Pattern in Given Window
regularpolygon

Create A Regular Polygon
rotate.psp

Rotate a Line Segment Pattern
rescue.rectangle

Convert Window Back To Rectangle
rotate

Rotate
plot.yardstick

Plot a Yardstick or Scale Bar
runifrect

Generate N Uniform Random Points in a Rectangle
rotate.ppp

Rotate a Point Pattern
rounding

Detect Numerical Rounding
shift.owin

Apply Vector Translation To Window
round.ppp

Apply Numerical Rounding to Spatial Coordinates
plot.splitppp

Plot a List of Point Patterns
rotate.im

Rotate a Pixel Image
shift.im

Apply Vector Translation To Pixel Image
shift

Apply Vector Translation
shift.ppx

Apply Vector Translation To Box Or Point Pattern In Arbitrary Dimension
ripras

Estimate window from points alone
rgbim

Create Colour-Valued Pixel Image
solist

List of Two-Dimensional Spatial Objects
scalardilate

Apply Scalar Dilation
solutionset

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

Find Nearest Point in a Region
pppmatching.object

Class of Point Matchings
pointsOnLines

Place Points Evenly Along Specified Lines
project2segment

Move Point To Nearest Line
ppx

Multidimensional Space-Time Point Pattern
quantile.ewcdf

Quantiles of Weighted Empirical Cumulative Distribution Function
rotate.owin

Rotate a Window
rotate.infline

Rotate or Shift Infinite Lines
shift.psp

Apply Vector Translation To Line Segment Pattern
split.hyperframe

Divide Hyperframe Into Subsets and Reassemble
spatstat.options

Internal Options in Spatstat Package
quantile.im

Sample Quantiles of Pixel Image
sessionLibs

Print Names and Version Numbers of Libraries Loaded
rescale.im

Convert Pixel Image to Another Unit of Length
split.ppx

Divide Multidimensional Point Pattern into Sub-patterns
rescale

Convert dataset to another unit of length
spokes

Spokes pattern of dummy points
run.simplepanel

Run Point-and-Click Interface
rsyst

Simulate systematic random point pattern
selfcrossing.psp

Crossing Points in a Line Segment Pattern
subset.psp

Subset of Line Segment Satisfying A Condition
quadrats

Divide Region into Quadrats
spatdim

Spatial Dimension of a Dataset
spatstat.geom-deprecated

Deprecated spatstat.geom functions
square

Square Window
stratrand

Stratified random point pattern
shift.ppp

Apply Vector Translation To Point Pattern
quadscheme

Generate a Quadrature Scheme from a Point Pattern
subset.hyperframe

Subset of Hyperframe Satisfying A Condition
summary.anylist

Summary of a List of Things
raster.x

Cartesian Coordinates for a Pixel Raster
selfcut.psp

Cut Line Segments Where They Intersect
subset.ppp

Subset of Point Pattern Satisfying A Condition
split.ppp

Divide Point Pattern into Sub-patterns
split.im

Divide Image Into Sub-images
rescale.ppp

Convert Point Pattern to Another Unit of Length
solapply

Apply a Function Over a List and Obtain a List of Objects
rescale.owin

Convert Window to Another Unit of Length
rectdistmap

Distance Map Using Rectangular Distance Metric
summary.splitppp

Summary of a Split Point Pattern
superimpose

Superimpose Several Geometric Patterns
scaletointerval

Rescale Data to Lie Between Specified Limits
scanpp

Read Point Pattern From Data File
transmat

Convert Pixel Array Between Different Conventions
summary.owin

Summary of a Spatial Window
text.ppp

Add Text Labels to Spatial Pattern
test.crossing.psp

Check Whether Segments Cross
tileindex

Determine Which Tile Contains Each Given Point
tile.areas

Compute Areas of Tiles in a Tessellation
tweak.colourmap

Change Colour Values in a Colour Map
summary.listof

Summary of a List of Things
union.quad

Union of Data and Dummy Points
timed

Record the Computation Time
summary.quad

Summarizing a Quadrature Scheme
simplify.owin

Approximate a Polygon by a Simpler Polygon
sidelengths.owin

Side Lengths of Enclosing Rectangle of a Window
setcov

Set Covariance of a Window
unstack.ppp

Separate Multiple Columns of Marks
simplepanel

Simple Point-and-Click Interface Panels
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
yardstick

Text, Arrow or Scale Bar in a Diagram
spatstat.geom-internal

Internal spatstat.geom functions
unstack.solist

Unstack Each Spatial Object in a List of Objects
spatstat.geom-package

The spatstat.geom Package
symbolmap

Graphics Symbol Map
tiles.empty

Check For Empty Tiles in a Tessellation
tess

Create a Tessellation
textureplot

Plot Image or Tessellation Using Texture Fill
summary.im

Summarizing a Pixel Image
summary.solist

Summary of a List of Spatial Objects
summary.ppp

Summary of a Point Pattern Dataset
tilenames

Names of Tiles in a Tessellation
summary.psp

Summary of a Line Segment Pattern Dataset
summary.distfun

Summarizing a Function of Spatial Location
texturemap

Texture Map
unnormdensity

Weighted kernel smoother
unmark

Remove Marks
timeTaken

Extract the Total Computation Time
triangulate.owin

Decompose Window into Triangles
unique.ppp

Extract Unique Points from a Spatial Point Pattern
update.symbolmap

Update a Graphics Symbol Map.
venn.tess

Tessellation Delimited by Several Sets
tiles

Extract List of Tiles in a Tessellation
whist

Weighted Histogram
uniquemap.default

Map Duplicate Entries to Unique Entries
whichhalfplane

Test Which Side of Infinite Line a Point Falls On
trim.rectangle

Cut margins from rectangle
weighted.median

Weighted Median, Quantiles or Variance
uniquemap.ppp

Map Duplicate Entries to Unique Entries
zapsmall.im

Rounding of Pixel Values
vertices

Vertices of a Window
volume

Volume of an Object
unitname

Name for Unit of Length
where.max

Find Location of Maximum in a Pixel Image