[R] polar.plot orientation and scale in plotrix

tsip002 at ec.auckland.ac.nz tsip002 at ec.auckland.ac.nz
Wed Aug 22 04:25:49 CEST 2007


Thanks for that Stephen.  It works nicely.  It seems that my expectations for
the plot defaults were non-standard.  From your remarks and those of a
colleague with an engineering background, I guess the defaults are standard. As
a biologist, it seemed sensible to me to expect it to work like a compass
though.  Future updates to the plotrix package apparently might include options
to easily customize these features (thanks to the package maintainer).

Best regards,

Quoting Stephen Tucker <brown_emu at yahoo.com>:

> I think that's the standard presentation for polar plots (theta measured from
> positive x-axis) - that I've seen, anyway. But for customization you can
> shift your origin for theta and define your own labels. For example, here is
> a modification to the example in the help page for polar.plot():
>
> testlen<-c(rnorm(36)*2+5)
> testpos<-seq(0,350,by=10)
> polar.plot(testlen,360-(testpos+90),
>            main="Test Polar Plot",lwd=3,line.col=4,
>            labels=seq(0,359,by=45)[c(3:1,8:4)],
>            label.pos=seq(0,359,by=45))
>
>
>
>
>
> --- Tim Sippel <tsip002 at ec.auckland.ac.nz> wrote:
>
> > Hello all-
> >
> >
> >
> > I would like to orient my polar.plot (from package plotrix) so that the
> > circular scale runs clockwise and the origin (ie. 0 degrees) starts at the
> > top of the plot.  The defaults of running the scale counter-clockwise and
> > beginning with 90 degrees at the top of the graph seems counter-intuitive
> > to
> > me.
> >
> >
> >
> > I'm using R 2.5.0, and plotrix version 2.2-4.
> >
> >
> >
> > Many thanks,
> >
> >
> >
> > Tim
> >
> >
> >
> >
> > 	[[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch 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.
> >
>
>
>
>
>
____________________________________________________________________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
> news, photos & more.
> http://mobile.yahoo.com/go?refer=1GNXIC
>



More information about the R-help mailing list