View source: R/circleVertices.R
circleVertices | R Documentation |
Generates vertex coordinates for a circle given its centre coordinates and radius.
circleVertices(xc, yc, radius, npoints = 25)
xc |
Circle centre X ordinate. |
yc |
Circle centre Y ordinate. |
radius |
Circle radius. |
npoints |
Number of distinct vertices required. |
A 2-column matrix of X and Y values. The final row is a copy
of the first row to create a closed polygon, so the matrix has
npoints + 1
rows.
circleLayoutVertices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.