title: R Plotly Polar Equation Rose Curve Graph Issue
body: <p>I am trying to graph polar equations in R using plotly.  However, when I graph a rose curve, I'm not getting the right amount of petals in the graph.</p>
  
  <p>My code...</p>
  
  <pre><code>library(plotly)
  
  f &lt;- function(){
     output &lt;- matrix(ncol=2, nrow = 361)
     for (i in 0:360){
          output[i,1] &lt;- i
         output[i,2] &lt;- 3 * cos(2 * (i * pi/180))
     }
     return(output)
   }
   mf &lt;- f()
   df &lt;- data.frame("theta" = mf[,1], "r"=mf[,2])
  
   p &lt;- plot_ly(
       df,
       type = 'scatterpolar',
       mode = 'lines'
     ) %&gt;%
     add_trace(
       r = ~r,
       theta = ~theta,
       name = 'Function',
       line = list(
          color = 'red'
      )
     ) %&gt;%
     layout(
        title = 'Polar Graph',
        font = list(
          family = 'Arial',
          size = 12,
          color = '#000'
        ),
        showlegend = F
   )
   p
  </code></pre>
  
  <p>Resulting graph...</p>
  
  <p><a href="https://i.stack.imgur.com/tNLT8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tNLT8.png" alt="Graph"></a></p>
  
  <p>What the graph should resemble...</p>
  
  <p><a href="https://i.stack.imgur.com/DRfnn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DRfnn.png" alt="Graph"></a></p>
  
  <p>Can anyone tell me what I'm doing wrong or if there's an easier way to do this in R?  Thanks.</p>