Description Usage Arguments Details Value See Also Examples
Plots any numbers of circles using base R graphics, starting by plotting the first circle on the bottom and going up.
1 2 | draw_circles(x, y, r, polygon_args = list(), vertices = 500, add = FALSE,
asp = 1, ...)
|
x |
x Coordinates for the circles' centers |
y |
y coordinates for the circles' centers |
r |
Radiuses of the circles |
polygon_args |
List of arguments to pass to
|
vertices |
The number of vertices used for drawing the circumference of each circle. |
add |
If |
asp |
Controls the aspect ratio of the plot. Will not produce circles if it ses to anything other than 1. |
... |
Arguments to pass to |
draw_circles uses polygon
to draw the circles,
which means that they are technically just circle-shaped polygons. The
function is vectorized and can handle any number of circles.
Plots circles either in the current plotting window or on a new plotting window.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.