Description Usage Arguments Examples
This function creates a an approximation of a circle as a SpatialPolygons object.
1 | createCircle(x,y,r,start=0,end=2*pi,nsteps=20)
|
x, y |
The coordinates of the center of the circle. |
r |
The radius of the circle. |
start |
Angle of the start points in radiants. |
end |
Angle of the end points in radiants. |
nsteps |
Number of edges of the polygon approximating the circle. |
1 2 3 | # Plot a circle with origin 0,0 and radius 1
library("sp", "sptools")
plot(createCircle(0,0,1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.