Description Usage Arguments Value
Adds a circle to an existing plot
1 | draw.circle(k=1, x0=0, y0=0, filled=FALSE, n=100, trim=0, alpha=0, ...)
|
k |
The radius; defaults to one |
x0 |
Location of the center of the circle on the x axis |
y0 |
Location of the center of the circle on the y axis |
filled |
If TRUE, the circle is drawn with 'polygons'; if FALSE (the default), lines is used instead |
n |
The number of points to place on the circumference |
trim |
the number of rows to remove from both the start and end of the data.frame, and thereby from the circumference of the circle as well |
alpha |
Angle (in degrees) by which to rotate point coordinates. Only ever sensible if 'trim' is specified |
... |
Any further arguments to pass to lines() or polygon(), depending on the value of the 'filled' argument (see above) |
plots the circle as specified; also returns a data.frame with the specified information
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.