circle | R Documentation |
The circle function creates a data set with x and y values that can be used as coordinates to plot a circle. The arguments 'from' and 'to' can be adjust to output different quadrants of the circle.
circle(
x = 0,
y = 0,
radius = 75,
nrow_data = 100,
from = 0,
to = 2,
add_center = FALSE
)
x |
The x coordinate of the center of the circle. |
y |
The y coordinate of the center of the circle. |
radius |
The radius of the circle. |
nrow_data |
The number of data points. |
from |
Start of sequence. Default = 0 |
to |
End of sequence. E.g. End = 0.5 results in a quadrant polygon. Default = 2 |
add_center |
Add the coordinate of the center (x,y) to the data set. Useful when creating quadrant polygons. Default = FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.