View source: R/splot-polygons.R
| get_shape_vertices | R Documentation |
Dispatch function to get vertices for any supported shape.
get_shape_vertices(shape, x, y, r, r2 = NULL, ...)
shape |
Shape name. |
x |
Center x coordinate. |
y |
Center y coordinate. |
r |
Radius/size. |
r2 |
Secondary radius (for ellipse, rectangle). |
... |
Additional shape-specific parameters. |
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.