Re: [R] plot polar coordinates

2014-02-25 Thread Jim Lemon
> Hi, > How do we limit the Theta range plotted? In the current format, R plots > the > whole 2Pi range, however I want a plot between 0 and pi/2. > I do not see any parameter in polar.plot to do the same, am I missing > something very obvious? Hi Avaneesh, Use the radial.pos argument to provide p

Re: [R] plot polar coordinates

2014-02-24 Thread avaneesh
Hi, How do we limit the Theta range plotted? In the current format, R plots the whole 2Pi range, however I want a plot between 0 and pi/2. I do not see any parameter in polar.plot to do the same, am I missing something very obvious? Regards, Avaneesh T -- View this message in context: http:/

Re: [R] plot polar coordinates

2010-06-04 Thread Thomas Steiner
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. A

Re: [R] plot polar coordinates

2010-06-04 Thread Jim Lemon
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 coord

Re: [R] plot polar coordinates

2010-06-03 Thread Thomas Steiner
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? Thank you very mu

Re: [R] plot polar coordinates

2010-06-03 Thread Greg Snow
It looks like polar.plot does not handle negative lengths, you can preprocess the data and just add 180 degrees to the angles corresponding to negative lengths and then use their absolute values. The radial.lim is not ignored, based on the documentation the range is then made pretty (and 100 is