Circular Arc
Draw acircular arc from angle 1 to angle 2 at a given location.
darc(rad = 1, ang1 = 0, ang2 = 360, x1 = 0, y1 = 0, n = 1)
rad
: radiusang1
: angle 1, degreesang2
: angle 2, degreesx1
: x location, plot coordinatesy1
: y location, plot coordinatesn
: increment for number of segments, degreesIf angle1 > angle2 arc is drawn in opposite direction
list(x,y)
Jonathan M. Leesjonathan.lees@unc.edu
plot(c(0,1), c(0,1), type='n', ann=FALSE, asp=1) A = darc(.3, 23, 47, .5, .5, n=1) lines(A$x, A$y)
Useful links