Re: [R] Changing the origin in polar.plot in plotrix package

2007-12-16 Thread John Beamer
Thanks Jim. That works well, thanks. Is there a way I can specify the range as it seems to adjust automatically. Also I was hoping to plot multiple datasets on the same chart but with different colours. In the normal plot() I can do this with col = I was hoping to do the same with points.co

Re: [R] Changing the origin in polar.plot in plotrix package

2007-12-16 Thread Jim Lemon
John Beamer wrote: > I am trying to draw a polar plot, which is easy enough to do in the > plotrix package through the polar.plot function. > > However I would like to change the origin of the length vector. For > instance all my length values are between 75 and 85, so instead of > having the orig

Re: [R] Changing the origin in polar.plot in plotrix package

2007-12-15 Thread hadley wickham
Hi John, One alternative would be to use ggplot2 with a polar coordinate system: library(ggplot2) qplot(mpg, wt, data=mtcars) + coord_polar() qplot(mpg, wt, data=mtcars, ylim=c(3,4)) + coord_polar() etc. You can see more examples of polar coordinates at http://had.co.nz/ggplot2/coord_polar.html

[R] Changing the origin in polar.plot in plotrix package

2007-12-15 Thread John Beamer
I am trying to draw a polar plot, which is easy enough to do in the plotrix package through the polar.plot function. However I would like to change the origin of the length vector. For instance all my length values are between 75 and 85, so instead of having the origin as 0 (the default) I'd like

[R] Changing the origin in polar.plot in plotrix package

2007-12-15 Thread John Beamer
I am trying to draw a polar plot, which is easy enough to do in the plotrix package through the polar.plot function. However I would like to change the origin of the length vector. For instance all my length values are between 75 and 85, so instead of having the origin as 0 (the default) I'd like