edges

0th

Percentile

Extract Boundary Edges of a Window.

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

Keywords
manip, spatial
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").

See Also

perimeter for calculating the total length of the boundary.

Aliases
  • edges
Examples
# NOT RUN {
  edges(square(1))
  edges(letterR)
# }
Documentation reproduced from package spatstat, version 1.59-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.