
Last chance! 50% off unlimited learning
Sale ends in
DrawAnnulus(x = 0, y = x, radius.in = 1, radius.out = 2, nv = 100,
border = par("fg"), col = par("bg"), lty = par("lty"),
lwd = par("lwd"), plot = TRUE)
par("fg")
.
Use border = NA
to omit borders. If there are shading lines, border = TRUE
means use the
same colour for the border as for the shading lines.NA
(or also NULL) means do not
fill, i.e., draw transparent rectangles, unless density
is specified."solid"
.TRUE
the structure will be plotted. If FALSE
only the xy-points are calculated and returned.
Use this option if you want to combine several geometric structures to a single polygon.DrawAnnulus
invisibly returns a list of the calculated coordinates for all shapes.polygon
, DrawRegPolygon
, DrawCircle
, DrawArc
Canvas(0.5)
DrawRegPolygon(nv=4, rot=pi/4, col="lightblue")
DrawAnnulus(radius.in=0.3, radius.out=0.45, col="lightgrey", border="darkgrey", lwd=5)
Run the code above in your browser using DataLab