arc2line | R Documentation |
Convert an arc into line segments given the center of the arc, the radius, the vector, and the angle (radians)
arc2line(center, r, vector, theta, npoints = 100)
center |
The coordinates of the center |
r |
The radius of the arc |
vector |
The vector of the arc |
theta |
The angle of the arc in radians |
npoints |
Number of points along the arc |
The Line object that approximates the given arc
arc2line(center = c(0.5, -0.1), r = 0.2, vector = c(0.1, 1), theta = 0.04)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.