View source: R/splot-polygons.R
| regular_polygon_vertices | R Documentation |
Generate Regular Polygon Vertices
regular_polygon_vertices(x, y, r, n, rotation = pi/2)
x |
Center x coordinate. |
y |
Center y coordinate. |
r |
Radius. |
n |
Number of sides. |
rotation |
Starting angle in radians (default: first vertex at top). |
List with x, y vectors of vertices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.