Skip to content
Prev 369811 / 398506 Next

draw stripes in a circle in R

It certainly wasn't intended. I expected the radius argument to get used repeatedly just as it is in the original function, but remain a scalar. Did you just copy-paste my code or do your own alterations? And did you add the arguments to the new call?

When I use:

Your set-up surrounds this:

 draw.circle2(-12.85,-10.9,0.85,nv=1000,border=NULL,col="yellow",lty=1,lwd=5, density=2, angle=45)

I get the attached pdf:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MWE.pdf
Type: application/pdf
Size: 9753 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20170615/2387defb/attachment.pdf>
-------------- next part --------------


I don't think you are interpreting the code in the same manner as I do.  When hacking someone else code it's probably a good idea to give all the arguments names. That way you uncover errors in the argument passing better because name collision get flagged and the error messages become more meaningful.

Feel free to post annotations using the octothorpe method in between lines to explain how you understand the code.