SCM

Forum: open-discussion

Monitor Forum | Start New Thread Start New Thread
Small enhancements to circular [ Reply ]
By: David Carlson on 2009-06-17 14:05
[forum:1629]
Three relatively small suggestions:

1. It would be nice if circular avoided negative results when working in the geographics template. The following line produces a negative mean value - it would be better to return 360+mean whenever mean<0:
mean(circular(c(350,351,352,353,354),units="degrees",template="geographics"))

2. rose.diag() constructs triangles for the bars with lines() calls. I'm pretty new at R, but I think if they were replaced by a poly() call to create a closed polygon, we would have the option to use color fills in the bars.

3. It seems like the "geographics" template should set a default units="degrees". Is it really that common to use origin=pi/2 and direction clockwise with radians?

Thanks to:
Vienna University of Economics and Business Powered By FusionForge