0

I want to draw a polar graph in R.

I found plotrix, which has polar.plot, but I'm open to any other solutions.

It plots a polygon just fine, even though I have a few thousand points, so great!

My question: how can I change the start value of the radial axis? ie, how to do ylim in polar.plot?

Hugh Perkins
  • 7,975
  • 7
  • 63
  • 71

2 Answers2

2

Try using ggplot2 - it has a coord_polar() command to make polar plots

Here's the official Documentation: http://docs.ggplot2.org/current/coord_polar.html

And a simple tutorial to work off of: http://learnr.wordpress.com/2010/08/16/consultants-chart-in-ggplot2/

Fridiculous
  • 338
  • 3
  • 15
  • Thanks! I'm looking for a solution in 'R' – Hugh Perkins Oct 28 '12 at 07:05
  • 1
    Oh, ggplot2 is an R library in fact? I was searching for something else, and found another reference, along with some R code using ggplot2 http://stackoverflow.com/questions/9946630/colour-points-in-a-plot-differently-depending-on-a-vector-of-values/9948995#9948995 – Hugh Perkins Oct 29 '12 at 03:02
1

I found a solution for polar.plot: option radial.lim.

Hugh Perkins
  • 7,975
  • 7
  • 63
  • 71