DrawArc
From DescTools v0.99.19
by Andri Signorell
Draw Elliptic or Circular Arc(s)
Draw one or more elliptic or circular arcs from angle.beg
to angle.end
on an existing plot using classic graphics.
 Keywords
 aplot
Usage
DrawArc(x = 0, y = x, rx = 1, ry = rx, theta.1 = 0, theta.2 = 2*pi, nv = 100, col = par("col"), lty = par("lty"), lwd = par("lwd"), plot = TRUE)
Arguments
 x, y
 a vector (or scalar) of xycoordinates of the center(s) of the arc(s).
 rx
 a scalar or a vector giving the semimajor axis of the ellipse for the arc(s)
 ry
 a scalar or a vector giving the semiminor axis of the ellipse for the arc(s). Default is radius.x which will result in a circle arc with radius.x.
 theta.1
 a scalar or a vector of starting angles in radians.
 theta.2
 a scalar or a vector of ending angles in radians.
 nv
 number of vertices used to plot the arc. Scalar or vector.
 col
 color for the arc(s). Scalar or vector.
 lty
 line type used for drawing.
 lwd
 line width used for drawing.
 plot
 logical. If
TRUE
the structure will be plotted. IfFALSE
only the xypoints are calculated and returned. Use this if you want to combine several geometric structures to a single polygon.
Details
All parameters are recycled if necessary. Be sure to use an aspect ratio of 1 as shown in the example to avoid distortion.
Value

invisibly returns a list of the calculated coordinates for all shapes.
See Also
Examples
curve(sin(x), 0, pi, col="blue", asp=1)
DrawArc(x = pi/2, y = 0, rx = 1, theta.1 = pi/4, theta.2 = 3*pi/4, col="red")
Community examples
Looks like there are no examples yet.