angle.beg
to angle.end
on an existing plot using classic graphics.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)
TRUE
the structure will be plotted. If FALSE
only the xy-points are calculated and returned.
Use this if you want to combine several geometric structures to a single polygon.
DrawCircle
, polygon
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")
Run the code above in your browser using DataLab