Length of each edge in the polygon. A single positive number.
centre
Coordinates of the centre of the polygon.
A numeric vector of length 2,
or a list(x,y) giving the coordinates of exactly one point, or a
point pattern (object of class "ppp") containing exactly one point.
align
Character string specifying whether to align one of the edges with
a vertical or horizontal boundary.
…
Ignored.
Value
A window (object of class "owin").
Details
The function regularpolygon creates a regular (equal-sided)
polygon with n sides, centred at centre,
with sides of equal length edge.
The function hexagon is the special case n=6.
The orientation of the polygon is determined by the argument align.
If align="no", one vertex of the polygon is placed on the
\(x\)-axis.
Otherwise, an edge of the polygon is aligned with one side of
the frame, specified by the value of align.