hi everyone,
Its really helped, it almost as what I wanted.

Thanks alot.

On Sat, Sep 12, 2009 at 4:30 AM, Greg Snow <greg.s...@imail.org> wrote:

>  Does this do what you want?
>
>
>
> library(TeachingDemos)
>
> ms.pent <- function(ang=0,...) {
>
>                 theta <- seq(ang, length.out=6, by=2*pi/5)
>
>                 cbind( cumsum(cos(theta)/2), cumsum(sin(theta)/2) )
>
> }
>
>
>
> par(xpd=NA)
>
> my.symbols( rep(1,5), rep(1,5), ms.pent, ang=seq(0, by=2*pi/5,
> length.out=5),
>
>                 add=FALSE, col=2:6 )
>
>
>
>
>
> --
>
> Gregory (Greg) L. Snow Ph.D.
>
> Statistical Data Center
>
> Intermountain Healthcare
>
> greg.s...@imail.org
>
> 801.408.8111
>
>
>
> *From:* Hemavathi Ramulu [mailto:hema.ram...@gmail.com]
> *Sent:* Thursday, September 10, 2009 2:44 AM
> *To:* Greg Snow
> *Cc:* r-help@r-project.org
> *Subject:* Re: [R] How to do rotation for polygon?
>
>
>
> Hi everyone,
>
>
>
> I still couldn't get the diagram as I mentioned before. I try Grey and
> Milton suggestion but
>
> it confusing.
>
> I hope anyone helped me.
>
>
>
> Thanks in advance.
>
>
>
> Regards,
>
> Hema.
>
> On Thu, Sep 3, 2009 at 11:39 PM, Greg Snow <greg.s...@imail.org> wrote:
>
> 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.s...@imail.org
> 801.408.8111
>
>
>
> > -----Original Message-----
> > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> > project.org] On Behalf Of Hemavathi Ramulu
> > Sent: Wednesday, September 02, 2009 11:05 PM
> > To: r-help@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@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.
>
>
>
>
> --
> Hemavathi Ramulu
>



-- 
Hemavathi Ramulu

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to