Skip to content
Prev 198720 / 398502 Next

polar.plot

On 10/31/2009 04:49 AM, Tony Greig wrote:
Hi Tony,
The first one is easy:

polar.plot(c(a,b), c(dir.a,dir.b), start = 90,
  clockwise = T, show.grid.labels=FALSE,
  radial.lim=c(0,5), line.col=2, lwd=2)

I have had one other person as about an "add" option, and I might 
include that in a future version. The second one is a bit harder. You 
probably noticed that I changed the show.grid.labels argument to FALSE 
in the above.

par(xpd=TRUE)
boxed.labels(rep(0,5),1:5,1:5,border=NA)
par(xpd=FALSE)

This will put the labels vertically up from the center. Doing fancier 
things like having the labels at an angle would require calculating the 
positions, which isn't too hard.

Jim