regular_polygon_vertices: Generate Regular Polygon Vertices

View source: R/splot-polygons.R

regular_polygon_verticesR Documentation

Generate Regular Polygon Vertices

Description

Generate Regular Polygon Vertices

Usage

regular_polygon_vertices(x, y, r, n, rotation = pi/2)

Arguments

x

Center x coordinate.

y

Center y coordinate.

r

Radius.

n

Number of sides.

rotation

Starting angle in radians (default: first vertex at top).

Value

List with x, y vectors of vertices.


cograph documentation built on April 1, 2026, 1:07 a.m.