[R] A polar.plot BUG in plotrix 1.3.3 ?

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Jun 22 15:30:57 CEST 2005


Halldor Björnsson wrote:

> Hi,
> 
> I just updated to R-2.1.1 and updated packages acordingly
> 
> However, after the update, routines that use polar.plot
> did not function as correctly.
> 
> In plotrix 1.3.3 the polar.plot function does scale label.pos
> to radians prior to calling radial.plot
> 
> Hence, the command
> polar.plot(c(5,10,5,0),c(-10,0,10,20),rp.type='P',
>      labels=c("A","N","V","S"),label.pos=c(0,90,180,270))
> 
> produces absurd compass lines but the correct results are obtained if 
> label.pos is scaled with pi/180 :
> 
> polar.plot(c(5,10,5,0),c(-10,0,10,20),rp.type='P',
>      labels=c("A","N","V","S"),label.pos=c(0,90,180,270)*pi/180)
> 
> I have attatched the polar.plot function from the two different versions 
> of the package.
> 
> It seems that if not missing  then label.pos is not changed at all in 
> version 1.3.3
> 
> So, a feature or a bug?
> 
> Sincerely,

Obviously this is a question for the author and maintainer of the 
package (in CC).

Uwe Ligges




More information about the R-help mailing list