[R] vertical semi-circles in R
Jim Lemon
drjimlemon at gmail.com
Mon Jun 26 00:16:53 CEST 2017
Hi Eliza,
How about this:
library(plotrix)
plot(0,type="n")
draw.arc(rep(0,6),seq(0.1,0.6,by=0.1),radius=0.05,
angle1=3*pi/2,angle2=5*pi/2)
Jim
On Sun, Jun 25, 2017 at 9:34 PM, Eliza B <eliza_botto1 at outlook.com> wrote:
> Dear useRs,
>
>
> I am to teach my students some drawing techniques in R. I started shape of an handle by using the following codes;
>
>>plot(0,0,col="white")
>
>>segments(0,0,0.3,0.3)
>
>>segments(0.3,0.4,0.3,0.3)
>
>>segments(0.3,0.4,0,0.7)
>
>>segments(0,0.7,0,0.6)
>
>>segments(0,0.0,0,0.1)
>
> The coding will draw a section of a handle. Now I want to draw semi circles of radius 0.05 between (0,0.6) and (0,0.1), oriented vertically and outward with mouth facing against the y-axis.
>
> I tried every help available online but to no use.
>
> Thanks in advance,
>
> EB
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list