Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

edges

Extract Boundary Edges of a Window.


Description

Extracts the boundary edges of a window and returns them as a line segment pattern.

Usage

edges(x, ..., window = NULL, check = FALSE)

Arguments

x

A window (object of class "owin"), or data acceptable to as.owin, specifying the window whose boundary is to be extracted.

...

Ignored.

window

Window to contain the resulting line segments. Defaults to as.rectangle(x).

check

Logical. Whether to check the validity of the resulting segment pattern.

Details

The boundary edges of the window x will be extracted as a line segment pattern.

Value

A line segment pattern (object of class "psp").

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.

See Also

perimeter for calculating the total length of the boundary.

Examples

edges(square(1))
  edges(letterR)

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.