In the spatstat library, a point pattern dataset must include
information about the window or region in which the pattern was
observed. A window is described by an object of class
Windows of arbitrary shape are supported.
An object of class
"owin" has one of three types:
a rectangle in the two-dimensional plane with edges parallel to the axes
a region whose boundary is a polygon or several polygons.
The region may have holes and may consist of several disconnected pieces.
Objects of class
"owin" may be created by the function
and converted from other types of data by the function
They may be manipulated by the functions
Geometrical calculations available for windows include
The mapping between continuous coordinates and pixel raster indices
is facilitated by the functions
There is a
plot method for window objects,
plot.owin. This may be useful if you wish to
plot a point pattern's window without the points for graphical
There are also methods for