[R] plot polar coordinates

Thomas Steiner finbref.2006 at gmail.com
Fri Jun 4 11:33:56 CEST 2010

Thank you Jim,
I had a liitle off-list conversation with Greg and finally I got the solution.
All the code is now on
http://commons.wikimedia.org/wiki/File:Sonnenstand.png  I got the
workaround with my own "(sun)lines" function which does the shift from
cartesian coordiantes to polar coordinates. An example result is
The negative vales where just a stupid try from my side, it does of
course make no sense.

2010/6/4 Jim Lemon <jim at bitwrit.com.au>:
> On 06/04/2010 05:05 AM, Thomas Steiner wrote:
>> Thank you Greg,
>> I'll add 180 then.
>> Thanks for the hint with longer radial.lim arguments it works woderfull.
>>> The lines function is plotting in Cartesian coordinates, not the polar
>>> coordinates.
>> Is there any (lines) function that plots polar coordinates to an existing
>> plot?
> Hi Thomas,
> Greg has already given you most of the solutions. I was a bit surprised to
> find that if you include the negative values in the radial.lim argument, the
> polygon appears _and_ in the right place! I'll have to add this to the help
> page. Note that your labels may not be where you think they should be, as 0
> degrees is east in your example. Maybe you want start=90?
> I have thought about reprogramming the radial plot functions with an "add"
> argument, but haven't gotten around to it. I'll have a look and if I can do
> this without too much work, I'll let you know.
> As far as 100 being prettier than 90, my experience is that I ain't gettin'
> any prettier as I get older.
> Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sonnenstad-narvik.png
Type: image/png
Size: 35237 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100604/3ef1997c/attachment-0001.png>

More information about the R-help mailing list