Skip to content
Prev 343234 / 398513 Next

About radial.labels in plotrix

On 18/08/2014 12:25 PM, Hugues Fran?ois wrote:
But I don't know how you have set "mylim" or "sta", so I still can't run 
your code.  Generally the best way to get useful help is to post a 
minimal, self-contained example that illustrates your problem.

I was assuming mylim was a vector of values, but if it is a single 
value, then it's trickier, because plotrix does some fancy stuff if 
mylim is length 2, and doesn't document it very clearly.

So I'd have 2 suggestions:  you could try to figure out the fancy stuff 
that plotrix is doing (I think it's probably pretty(radial.lim), but I'm 
not sure), or you could explicitly enter the values where you want 
radial lines and labels, e.g.

radial.plot(
                   mylim-data2[data2[,1]==sta,2:length(data2)],
                   labels=c("N","NE","E","SE","S","SW","W","NW"),
                   rp.type="p",
                   radial.lim=c(0,1,2,3),
                   radial.labels=c(3,2,1,0),
                   line.col="#648bda",
                   lwd = 2,
                   start=1.56,
                   clockwise = T)

Duncan Murdoch