powered by
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").
"psp"
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.
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.
x
perimeter for calculating the total length of the boundary.
perimeter
edges(square(1)) edges(letterR)
Run the code above in your browser using DataLab