Last chance! 50% off unlimited learning
Sale ends in
Extracts the boundary edges of a window and returns them as a line segment pattern.
edges(x, ..., window = NULL, check = FALSE)
A line segment pattern (object of class "psp"
).
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.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk.
The boundary edges of the window x
will be extracted as a line
segment pattern.
perimeter
for calculating the total length of the boundary.
edges(square(1))
edges(letterR)
Run the code above in your browser using DataLab