[R] How to do rotation for polygon?
Greg Snow
Greg.Snow at imail.org
Thu Sep 3 17:39:51 CEST 2009
The my.symbols and ms.polygon functions in the TeachingDemos package may help.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Hemavathi Ramulu
> Sent: Wednesday, September 02, 2009 11:05 PM
> To: r-help at r-project.org
> Subject: [R] How to do rotation for polygon?
>
> Hi everyone,
> I have coding for repeating pentagon as below:
>
> plot(0:11,type="n")
> for (i in 1:10 )polygon(rep(c(4,5,7,8,6)), i*c(.5,.3,.3,.5,.7), bor=2)
>
> which are increasing vertically.
>
> Now, I want to know how to rotate the pentagon, so that I will get
> pattern
> like flower.
> Basicly, repeating pentagon in circle.
>
> Thanks alot for helping me to solve this problem.
> --
> Hemavathi
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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