View source: R/create-shapes.R
create_circle | R Documentation |
x
and y
coordinates that form a circle (or the
arc of a circle)Create a set of x
and y
coordinates that form a circle (or the
arc of a circle)
create_circle(center = c(0, 0), npoints = 1000, r = 1, start = 0, end = 2)
center |
The ( |
npoints |
The number of points with which to create the circle. This will also be the length of the resulting data frame. Default: 1000 |
r |
The radius of the circle IN THE UNITS OF THE PLOT. This default
unit will be feet. Default: |
start |
The angle (in radians, divided by pi) at which to start drawing
the circle, where zero runs along the + |
end |
The angle (in radians, divided by pi) at which to stop drawing the
circle, where zero runs along the + |
A data frame containing the points needed to draw the specified circle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.