The original spatstat package has been split into
several sub-packages. This package spatstat.geom is one of the sub-packages.
It defines classes of spatial objects, and supports
geometrical operations on them.
The reorganisation of spatstat into a family of packages is described
on the GitHub repository
spatstat/spatstat.
This repository holds the latest development version of spatstat.geom.
For the latest public release on CRAN, click the green badge above.
spatstat.geom supports
- classes of spatial objects
- basic support for spatial objects
- graphics
- interaction with spatial objects
- geometrical operations
- morphological operations
- image processing
For a full list of functions, see the help file for spatstat.geom-package.
- point patterns (
ppp) - spatial regions or windows (
owin) - pixel images (
im) - line segment patterns (
psp) - tessellations (
tess) - linear networks (
linnet)
- 3D point patterns (
pp3) - general multidimensional space-time point patterns (
ppx)
- printing spatial objects
- basic summary information about spatial objects
- subsetting, splitting, superimposing spatial patterns
- extracting information such as spatial coordinates
- pixellation
- discretisation of coordinates
- interpolation of images
- solution set, level set
- identifying duplicated elements
- plotting spatial patterns
- plotting images (depicted as colour images, contour plots, perspective views, composite images)
- graphical information (layered objects, colour maps, symbol maps)
- interactive data entry and editing for spatial objects
identifymethods for identifying individual elements- simple interactive panels (
simplepanel)
- geometrical transformations (
rotate,scalardilation,shift,reflect,flipxy,affine) - set operations (
intersect.owin,union.owin,complement.owin,setminus.owin) - test whether a point falls inside a set
- convex hull
- geometrical mensuration (measuring areas, lengths, angles, diameter)
- nearest neighbour
- nearest neighbour distance
- pairwise distances
- distance map/ distance transform
- tessellations (
tess,hextess,quadrats,venn.tess,polartess,dirichlet,delaunay,quantess,rpoislinetess) - triangulation
- discretisation
- bounding box
- erosion, dilation
- opening, closing
- morphological distance transform
- pixel-by-pixel computation (
Math.im,eval.im,im.apply) - set covariance function (
setcov) - convolution of images (
imcov)
Summary statistics are mostly provided in the spatstat.explore package.
However, spatstat.geom provides functions for calculating
- average intensity of a point pattern (
intensity) - quadrat counts (
quadratcount)
Functions for generating random spatial patterns
are mostly provided in the spatstat.random package.
However, spatstat.geom provides basic functions for generating
- random points in a rectangle (
runifrect) - quasirandom points (
rQuasi)