[R] plotrix: reverse axis in polar.plot

Thomas Steiner finbref.2006 at gmail.com
Mon Aug 10 00:15:16 CEST 2009


Hi,
how can I reverse the radius axis of plotrix's polar.plot function?
Perhaps this sounds strange, but I use the radians for angles as well:
In the center is zenith and the corresponding angle is 90°, not 0. See
an example plot at
http://www.mysundial.ca/tsp/images/sun_chart_50_solar_polar.jpg

dirs<-c("S","E","N","W")
polar.plot(NA,NA,label.pos=seq(0,270,length=4),labels=dirs,main="Sun
Chart",rp.type="p",radial.lim=c(0,90))
lines(c(4,12,15,22,45,55),c(10,83,118,90,72,61),col="red")

And why is the radial limit in the above example 0..100 and not 0..90
as requested by the radial.lim argument?

Thanks for your help,
Thomas




More information about the R-help mailing list