angle.beg
to angle.end
on an existing plot using classic graphics.DrawArc(x = 0, y = x, radius.x = 1, radius.y = radius.x,
angle.beg = 0, angle.end = pi, nv = 100,
col = par("col"), lty = par("lty"), lwd = par("lwd"),
plot = TRUE)
DrawArc
invisibly returns a list of the calculated coordinates for all shapes.DrawCircle
, DrawAnnulusSector
, polygon
curve(sin(x), 0, pi, col="blue", asp=1)
DrawArc( x = pi/2, y = 0, radius.x = 1, angle.beg = pi/4, angle.end = 3*pi/4, col="red")
Run the code above in your browser using DataLab