Drawing a quarter circle in R

I need to draw 90 degrees of a circle in r. I know how to draw a full circle in R using draw.circle , but I don't know how to hide 270 degrees!

Thanks.

+4
source share
2 answers

You are using the plotrix package. Plotrix also has a draw.arc function.

 library(plotrix) ?draw.arc 
+10
source

You can also use the package grid and the grid.curve function.

eg.

 library(grid) plot.new() vp=viewport(x=0.5,y=0.5,width=1, height=1) pushViewport(vp) grid.curve(0.5,0.5,0.3,0.3, curvature=arcCurvature(90),square=F,ncp=10) 
+1
source

All Articles