Web EndMemo

R Draw Circle

draw.circle(...) function draws a circle on the plot. It's usage is:


x,y: Circle center coordinates
radius: Circle radius
nv: Number of vertices
border: Border Color
col: Fill Color
lty: Line type
lwd: Line width

draw.circle requires "plotrix" package, to install:

Let's first plot the BOD data frame:

Add a circle to the plot: