[R] polar.plot orientation and scale in plotrix
Stephen Tucker
brown_emu at yahoo.com
Tue Aug 21 03:29:41 CEST 2007
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.
>
More information about the R-help
mailing list