Learn R Programming

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

spatstat.geom (version 1.65-5)

Geometrical Functionality of the 'spatstat' Package

Description

This is a subset of the original 'spatstat' package, containing the user-level code from 'spatstat' which performs geometrical operations, except for the geometry of linear networks.

Copy Link

Version

Install

install.packages('spatstat.geom')

Monthly Downloads

64,669

Version

1.65-5

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

January 15th, 2021

Functions in spatstat.geom (1.65-5)

Extract.layered

Extract or Replace Subset of a Layered Object
Extract.listof

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

Subset of Quadrature Scheme
Extract.ppx

Extract Subset of Multidimensional Point Pattern
Extract.psp

Extract Subset of Line Segment Pattern
Extract.im

Extract Subset of Image
Extract.hyperframe

Extract or Replace Subset of Hyperframe
Extract.tess

Extract or Replace Subset of Tessellation
Extract.ppp

Extract or Replace Subset of Point Pattern
Extract.owin

Extract Subset of Window
Extract.anylist

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

Extract or Replace Subset of a List of Spatial Objects
Frame

Extract or Change the Containing Rectangle of a Spatial Object
Extract.splitppp

Extract or Replace Sub-Patterns
anyNA.im

Check Whether Image Contains NA Values
Replace.im

Reset Values in Subset of Image
as.boxx

Convert Data to Multi-Dimensional Box
affine.im

Apply Affine Transformation To Pixel Image
Math.im

S3 Group Generic methods for images
affine.tess

Apply Geometrical Transformation To Tessellation
affine.ppp

Apply Affine Transformation To Point Pattern
MinkowskiSum

Minkowski Sum of Windows
Math.imlist

S3 Group Generic methods for List of Images
anylist

List of Objects
affine.psp

Apply Affine Transformation To Line Segment Pattern
affine.owin

Apply Affine Transformation To Window
append.psp

Combine Two Line Segment Patterns
angles.psp

Orientation Angles of Line Segments
areaGain

Difference of Disc Areas
area.owin

Area of a Window
Window

Extract or Change the Window of a Spatial Object
applynbd

Apply Function to Every Neighbourhood in a Point Pattern
as.box3

Convert Data to Three-Dimensional Box
areaLoss

Difference of Disc Areas
as.im

Convert to Pixel Image
as.data.frame.hyperframe

Coerce Hyperframe to Data Frame
add.texture

Fill Plot With Texture
affine

Apply Affine Transformation
WindowOnly

Extract Window of Spatial Object
as.data.frame.im

Convert Pixel Image to Data Frame
as.layered

Convert Data To Layered Object
as.data.frame.owin

Convert Window to Data Frame
as.hyperframe

Convert Data to Hyperframe
as.hyperframe.ppx

Extract coordinates and marks of multidimensional point pattern
as.data.frame.ppp

Coerce Point Pattern to a Data Frame
as.mask.psp

Convert Line Segment Pattern to Binary Pixel Mask
as.data.frame.psp

Coerce Line Segment Pattern to a Data Frame
as.mask

Pixel Image Approximation of a Window
as.tess

Convert Data To Tessellation
as.psp

Convert Data To Class psp
as.ppp

Convert Data To Class ppp
bdist.points

Distance to Boundary of Window
as.polygonal

Convert a Window to a Polygonal Window
bdist.tiles

Distance to Boundary of Window
as.owin

Convert Data To Class owin
beachcolours

Create Colour Scheme for a Range of Numbers
bdist.pixels

Distance to Boundary of Window
as.data.frame.tess

Convert Tessellation to Data Frame
as.function.owin

Convert Window to Indicator Function
as.function.tess

Convert a Tessellation to a Function
as.solist

Convert List of Two-Dimensional Spatial Objects
border

Border Region of a Window
as.rectangle

Window Frame
as.function.im

Convert Pixel Image to Function of Coordinates
as.matrix.owin

Convert Pixel Image to Matrix
box3

Three-Dimensional Box
as.matrix.im

Convert Pixel Image to Matrix or Array
cbind.hyperframe

Combine Hyperframes by Rows or by Columns
by.ppp

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

Convex Hull of Points
centroid.owin

Centroid of a window
boundingcircle

Smallest Enclosing Circle
clickpoly

Interactively Define a Polygon
chop.tess

Subdivide a Window or Tessellation using a Set of Lines
clickbox

Interactively Define a Rectangle
boxx

Multi-Dimensional Box
by.im

Apply Function to Image Broken Down by Factor
compatible.im

Test Whether Pixel Images Are Compatible
complement.owin

Take Complement of a Window
clickdist

Interactively Measure Distance
clip.infline

Intersect Infinite Straight Lines with a Window
boundingbox

Bounding Box of a Window, Image, or Point Pattern
convolve.im

Convolution of Pixel Images
convexify

Weil's Convexifying Operation
contour.im

Contour plot of pixel image
closing

Morphological Closing
closepairs

Close Pairs of Points
commonGrid

Determine A Common Spatial Domain And Pixel Resolution
colouroutputs

Extract or Assign Colour Values in a Colour Map
contour.imlist

Array of Contour Plots
diameter.box3

Geometrical Calculations for Three-Dimensional Box
connected

Connected components
clickppp

Interactively Add Points
concatxy

Concatenate x,y Coordinate Vectors
diameter

Diameter of an Object
colourmap

Colour Lookup Tables
colourtools

Convert and Compare Colours in Different Formats
closepairs.pp3

Close Pairs of Points in 3 Dimensions
crossdist.psp

Pairwise distances between two different line segment patterns
coords

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

Corners of a rectangle
dilated.areas

Areas of Morphological Dilations
compatible

Test Whether Objects Are Compatible
crossing.psp

Crossing Points of Two Line Segment Patterns
closetriples

Close Triples of Points
distmap.owin

Distance Map of Window
dirichlet

Dirichlet Tessellation of Point Pattern
edit.ppp

Invoke Text Editor on Spatial Data
grow.boxx

Add margins to box in any dimension
edit.hyperframe

Invoke Text Editor on Hyperframe
grow.rectangle

Add margins to rectangle
distmap.ppp

Distance Map of Point Pattern
distmap.psp

Distance Map of Line Segment Pattern
dilation

Morphological Dilation
dirichletAreas

Compute Areas of Tiles in Dirichlet Tessellation
convexhull

Convex Hull
convexhull.xy

Convex Hull of Points
hotrod

Heat Kernel for a One-Dimensional Rod
default.dummy

Generate a Default Pattern of Dummy Points
hyperframe

Hyper Data Frame
crossdist.ppp

Pairwise distances between two different point patterns
crossdist.ppx

Pairwise Distances Between Two Different Multi-Dimensional Point Patterns
connected.tess

Connected Components of Tiles of a Tessellation
connected.ppp

Connected Components of a Point Pattern
distfun

Distance Map as a Function
domain

Extract the Domain of any Spatial Object
distmap

Distance Map
crossdist

Pairwise distances
cut.im

Convert Pixel Image from Numeric to Factor
covering

Cover Region with Discs
delaunay

Delaunay Triangulation of Point Pattern
dirichletVertices

Vertices and Edges of Dirichlet Tessellation
edges2vees

List Dihedral Triples in a Graph
harmonise.owin

Make Windows Compatible
edges2triangles

List Triangles in a Graph
has.close

Check Whether Points Have Close Neighbours
identify.ppp

Identify Points in a Point Pattern
interp.colourmap

Interpolate smoothly between specified colours
intensity.psp

Empirical Intensity of Line Segment Pattern
identify.psp

Identify Segments in a Line Segment Pattern
fardist

Farthest Distance to Boundary of Window
crossdist.default

Pairwise distances between two different sets of points
intensity.quadratcount

Intensity Estimates Using Quadrat Counts
crossdist.pp3

Pairwise distances between two different three-dimensional point patterns
dirichletWeights

Compute Quadrature Weights Based on Dirichlet Tessellation
deltametric

Delta Metric
delaunayDistance

Distance on Delaunay Triangulation
flipxy

Exchange X and Y Coordinates
is.convex

Test Whether a Window is Convex
ellipse

Elliptical Window.
is.empty

Test Whether An Object Is Empty
incircle

Find Largest Circle Inside Window
endpoints.psp

Endpoints of Line Segment Pattern
harmonise

Make Objects Compatible
ewcdf

Weighted Empirical Cumulative Distribution Function
extrapolate.psp

Extrapolate Line Segments to Obtain Infinite Lines
interp.im

Interpolate a Pixel Image
duplicated.ppp

Determine Duplicated Points in a Spatial Point Pattern
diameter.boxx

Geometrical Calculations for Multi-Dimensional Box
diameter.owin

Diameter of a Window
cut.ppp

Classify Points in a Point Pattern
intersect.tess

Intersection of Two Tessellations
harmonise.im

Make Pixel Images Compatible
inside.owin

Test Whether Points Are Inside A Window
inside.boxx

Test Whether Points Are Inside A Multidimensional Box
layered

Create List of Plotting Layers
is.subset.owin

Determine Whether One Window is Contained In Another
marks.psp

Marks of a Line Segment Pattern
methods.pp3

Methods for three-dimensional point patterns
methods.ppx

Methods for Multidimensional Space-Time Point Patterns
marks.tess

Marks of a Tessellation
erosionAny

Morphological Erosion of Windows
eval.im

Evaluate Expression Involving Pixel Images
gridcentres

Rectangular grid of points
edges

Extract Boundary Edges of a Window.
multiplicity.ppp

Count Multiplicity of Duplicate Points
nearest.raster.point

Find Pixel Nearest to a Given Point
gridweights

Compute Quadrature Weights Based on Grid Counts
hist.funxy

Histogram of Values of a Spatial Function
disc

Circular Window
is.marked.ppp

Test Whether A Point Pattern is Marked
is.multitype

Test whether Object is Multitype
infline

Infinite Straight Lines
is.lpp

Test Whether An Object Is A Point Pattern on a Linear Network
is.marked

Test Whether Marks Are Present
integral.im

Integral of a Pixel Image
intensity

Intensity of a Dataset or a Model
is.connected

Determine Whether an Object is Connected
hist.im

Histogram of Pixel Values in an Image
im.object

Class of Images
eroded.areas

Areas of Morphological Erosions
imcov

Spatial Covariance of a Pixel Image
discretise

Safely Convert Point Pattern Window to Binary Mask
discs

Union of Discs
discpartarea

Area of Part of Disc
mergeLevels

Merge Levels of a Factor
intersect.owin

Intersection, Union or Set Subtraction of Windows
intersect.boxx

Intersection Of Boxes Of Arbitrary Dimension
is.multitype.ppp

Test Whether A Point Pattern is Multitype
mean.im

Mean and Median of Pixel Values in an Image
erosion

Morphological Erosion by a Disc
maxnndist

Compute Minimum or Maximum Nearest-Neighbour Distance
nndist.psp

Nearest neighbour distances between line segments
nndist.ppx

Nearest Neighbour Distances in Any Dimensions
owin

Create a Window
is.owin

Test Whether An Object Is A Window
nnwhich.pp3

Nearest neighbours in three dimensions
fourierbasis

Fourier Basis Functions
methods.unitname

Methods for Units
pairdist.ppx

Pairwise Distances in Any Dimensions
midpoints.psp

Midpoints of Line Segment Pattern
invoke.symbolmap

Plot Data Using Graphics Symbol Map
pairdist.ppp

Pairwise distances
nnwhich.ppx

Nearest Neighbours in Any Dimensions
owin.object

Class owin
opening

Morphological Opening
pixellate.ppp

Convert Point Pattern to Pixel Image
funxy

Spatial Function Class
pixellate.psp

Convert Line Segment Pattern to Pixel Image
overlap.owin

Compute Area of Overlap
methods.box3

Methods for Three-Dimensional Box
pixelquad

Quadrature Scheme Based on Pixel Grid
nestsplit

Nested Split
nnfun

Nearest Neighbour Index Map as a Function
nncross

Nearest Neighbours Between Two Patterns
lengths_psp

Lengths of Line Segments
padimage

Pad the Border of a Pixel Image
nnmap

K-th Nearest Point Map
pairdist

Pairwise distances
nncross.pp3

Nearest Neighbours Between Two Patterns in 3D
persp.im

Perspective Plot of Pixel Image
levelset

Level Set of a Pixel Image
periodify

Make Periodic Copies of a Spatial Pattern
is.rectangle

Determine Type of Window
markstat

Summarise Marks in Every Neighbourhood in a Point Pattern
is.ppp

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

Determine Whether a Point Pattern is Connected
plot.anylist

Plot a List of Things
plot.hyperframe

Plot Entries in a Hyperframe
matchingdist

Distance for a Point Pattern Matching
plot.colourmap

Plot a Colour Map
plot.textstring

Plot a Text String
plot.texturemap

Plot a Texture Map
nndist

Nearest neighbour distances
methods.boxx

Methods for Multi-Dimensional Box
headtail

First or Last Part of a Spatial Pattern
methods.distfun

Geometrical Operations for Distance Functions
nncross.ppx

Nearest Neighbours Between Two Patterns in Any Dimensions
hextess

Hexagonal Grid or Tessellation
nsegments

Number of Line Segments in a Line Segment Pattern
plot.pppmatching

Plot a Point Matching
plot.psp

plot a Spatial Line Segment Pattern
plot.quad

Plot a Spatial Quadrature Scheme
nndist.pp3

Nearest neighbour distances in three dimensions
plot.tess

Plot a Tessellation
plot.symbolmap

Plot a Graphics Symbol Map
nnmark

Mark of Nearest Neighbour
nnwhich

Nearest neighbour
plot.yardstick

Plot a Yardstick or Scale Bar
plot.quadratcount

Plot Quadrat Counts
im.apply

Apply Function Pixelwise to List of Images
im

Create a Pixel Image Object
print.quad

Print a Quadrature Scheme
progressreport

Print Progress Reports
layerplotargs

Extract or Replace the Plot Arguments of a Layered Object
intensity.ppx

Intensity of a Multidimensional Space-Time Point Pattern
intensity.ppp

Empirical Intensity of Point Pattern
is.im

Test Whether An Object Is A Pixel Image
layout.boxes

Generate a Row or Column Arrangement of Rectangles.
print.ppp

Print Brief Details of a Point Pattern Dataset
nvertices

Count Number of Vertices
perspPoints

Draw Points or Lines on a Surface Viewed in Perspective
is.linim

Test Whether an Object is a Pixel Image on a Linear Network
lut

Lookup Tables
print.psp

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

Methods for Spatial Functions
reflect

Reflect In Origin
nobjects

Count Number of Geometrical Objects in a Spatial Dataset
nearestValue

Image of Nearest Defined Pixel Value
nearestsegment

Find Line Segment Nearest to Each Point
methods.layered

Methods for Layered Objects
marks

Marks of a Point Pattern
pixellate

Convert Spatial Object to Pixel Image
regularpolygon

Create A Regular Polygon
pixellate.owin

Convert Window to Pixel Image
ppp

Create a Point Pattern
plot.pp3

Plot a Three-Dimensional Point Pattern
plot.ppp

plot a Spatial Point Pattern
pixelcentres

Extract Pixel Centres as Point Pattern
pointsOnLines

Place Points Evenly Along Specified Lines
pppdist

Distance Between Two Point Patterns
plot.onearrow

Plot an Arrow
plot.imlist

Plot a List of Images
plot.im

Plot a Pixel Image
pppmatching

Create a Point Matching
psp

Create a Line Segment Pattern
quadrats

Divide Region into Quadrats
print.im

Print Brief Details of an Image
raster.x

Cartesian Coordinates for a Pixel Raster
plot.owin

Plot a Spatial Window
print.owin

Print Brief Details of a Spatial Window
psp.object

Class of Line Segment Patterns
rjitter

Random Perturbation of a Point Pattern
ppp.object

Class of Point Patterns
rectdistmap

Distance Map Using Rectangular Distance Metric
npoints

Number of Points in a Point Pattern
pairdist.psp

Pairwise distances between line segments
quantile.ewcdf

Quantiles of Weighted Empirical Cumulative Distribution Function
quantile.im

Sample Quantiles of Pixel Image
quad.object

Class of Quadrature Schemes
project2segment

Move Point To Nearest Line
pairdist.default

Pairwise distances
quadratcount

Quadrat counting for a point pattern
pairdist.pp3

Pairwise distances in Three Dimensions
shift

Apply Vector Translation
run.simplepanel

Run Point-and-Click Interface
perimeter

Perimeter Length of Window
rlinegrid

Generate grid of parallel lines with random displacement
rotate.im

Rotate a Pixel Image
rotate

Rotate
rsyst

Simulate systematic random point pattern
rescale.owin

Convert Window to Another Unit of Length
scanpp

Read Point Pattern From Data File
project2set

Find Nearest Point in a Region
scaletointerval

Rescale Data to Lie Between Specified Limits
rescale.ppp

Convert Point Pattern to Another Unit of Length
plot.layered

Layered Plot
shift.im

Apply Vector Translation To Pixel Image
plot.listof

Plot a List of Things
plot.splitppp

Plot a List of Point Patterns
shift.ppx

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

Multidimensional Space-Time Point Pattern
pppmatching.object

Class of Point Matchings
pp3

Three Dimensional Point Pattern
plot.solist

Plot a List of Spatial Objects
polartess

Tessellation Using Polar Coordinates
relevel.im

Reorder Levels of a Factor-Valued Image or Pattern
quadscheme.logi

Generate a Logistic Regression Quadrature Scheme from a Point Pattern
quadscheme

Generate a Quadrature Scheme from a Point Pattern
quantess

Quantile Tessellation
requireversion

Require a Specific Version of a Package
shift.psp

Apply Vector Translation To Line Segment Pattern
summary.distfun

Summarizing a Function of Spatial Location
split.ppp

Divide Point Pattern into Sub-patterns
rescale.psp

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

Divide Image Into Sub-images
rescue.rectangle

Convert Window Back To Rectangle
rotate.ppp

Rotate a Point Pattern
quasirandom

Quasirandom Patterns
rgbim

Create Colour-Valued Pixel Image
summary.im

Summarizing a Pixel Image
shift.owin

Apply Vector Translation To Window
tile.areas

Compute Areas of Tiles in a Tessellation
symbolmap

Graphics Symbol Map
tess

Create a Tessellation
runifrect

Generate N Uniform Random Points in a Rectangle
rotate.psp

Rotate a Line Segment Pattern
scalardilate

Apply Scalar Dilation
sidelengths.owin

Side Lengths of Enclosing Rectangle of a Window
simplepanel

Simple Point-and-Click Interface Panels
split.ppx

Divide Multidimensional Point Pattern into Sub-patterns
spatdim

Spatial Dimension of a Dataset
spatstat.geom-deprecated

Deprecated spatstat.geom functions
rescale

Convert dataset to another unit of length
ripras

Estimate window from points alone
rescale.im

Convert Pixel Image to Another Unit of Length
rQuasi

Generate Quasirandom Point Pattern in Given Window
subset.psp

Subset of Line Segment Satisfying A Condition
rotate.infline

Rotate or Shift Infinite Lines
tileindex

Determine Which Tile Contains Each Given Point
shift.ppp

Apply Vector Translation To Point Pattern
rotate.owin

Rotate a Window
unmark

Remove Marks
spatstat.options

Internal Options in Spatstat Package
selfcrossing.psp

Crossing Points in a Line Segment Pattern
split.hyperframe

Divide Hyperframe Into Subsets and Reassemble
selfcut.psp

Cut Line Segments Where They Intersect
spatstat.geom-internal

Internal spatstat.geom functions
simplify.owin

Approximate a Polygon by a Simpler Polygon
solapply

Apply a Function Over a List and Obtain a List of Objects
square

Square Window
unnormdensity

Weighted kernel smoother
rounding

Detect Numerical Rounding
round.ppp

Apply Numerical Rounding to Spatial Coordinates
subset.hyperframe

Subset of Hyperframe Satisfying A Condition
spokes

Spokes pattern of dummy points
sessionLibs

Print Names and Version Numbers of Libraries Loaded
spatstat.geom-package

The spatstat.geom Package
setcov

Set Covariance of a Window
subset.ppp

Subset of Point Pattern Satisfying A Condition
summary.quad

Summarizing a Quadrature Scheme
summary.anylist

Summary of a List of Things
summary.splitppp

Summary of a Split Point Pattern
summary.owin

Summary of a Spatial Window
summary.listof

Summary of a List of Things
summary.ppp

Summary of a Point Pattern Dataset
textureplot

Plot Image or Tessellation Using Texture Fill
tilenames

Names of Tiles in a Tessellation
summary.psp

Summary of a Line Segment Pattern Dataset
unitname

Name for Unit of Length
stratrand

Stratified random point pattern
texturemap

Texture Map
superimpose

Superimpose Several Geometric Patterns
uniquemap.ppp

Map Duplicate Entries to Unique Entries
summary.solist

Summary of a List of Spatial Objects
tiles

Extract List of Tiles in a Tessellation
timed

Record the Computation Time
vertices

Vertices of a Window
tweak.colourmap

Change Colour Values in a Colour Map
volume

Volume of an Object
union.quad

Union of Data and Dummy Points
whist

Weighted Histogram
yardstick

Text, Arrow or Scale Bar in a Diagram
solist

List of Two-Dimensional Spatial Objects
whichhalfplane

Test Which Side of Infinite Line a Point Falls On
with.hyperframe

Evaluate an Expression in Each Row of a Hyperframe
timeTaken

Extract the Total Computation Time
tiles.empty

Check For Empty Tiles in a Tessellation
trim.rectangle

Cut margins from rectangle
solutionset

Evaluate Logical Expression Involving Pixel Images and Return Region Where Expression is True
update.symbolmap

Update a Graphics Symbol Map.
venn.tess

Tessellation Delimited by Several Sets
triangulate.owin

Decompose Window into Triangles
transmat

Convert Pixel Array Between Different Conventions
unique.ppp

Extract Unique Points from a Spatial Point Pattern
test.crossing.psp

Check Whether Segments Cross
uniquemap.default

Map Duplicate Entries to Unique Entries
weighted.median

Weighted Median, Quantiles or Variance
text.ppp

Add Text Labels to Spatial Pattern
unstack.solist

Unstack Each Spatial Object in a List of Objects
unstack.ppp

Separate Multiple Columns of Marks
zapsmall.im

Rounding of Pixel Values
where.max

Find Location of Maximum in a Pixel Image