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

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

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

"owin"

as.owin

Ignored.

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

as.rectangle(x)

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

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

"psp"

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

x

perimeter for calculating the total length of the boundary.

perimeter

# NOT RUN { edges(square(1)) edges(letterR) # }

Run the code above in your browser using DataCamp Workspace