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.
Ignored.
Window to contain the resulting line segments.
Defaults to as.rectangle(x)
.
Logical. Whether to check the validity of the resulting segment pattern.
A line segment pattern (object of class "psp"
).
The boundary edges of the window x
will be extracted as a line
segment pattern.
perimeter
for calculating the total length of the boundary.
# NOT RUN {
edges(square(1))
edges(letterR)
# }
Run the code above in your browser using DataLab