# Latest version of polar plots not working?

**URL:** <https://community.plotly.com/t/latest-version-of-polar-plots-not-working/9310>\
**Category:** Plotly R\
**Created:** [March 30, 2018, 3:58am UTC](https://community.plotly.com/t/latest-version-of-polar-plots-not-working/9310 "2018-03-30T03:58:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sammyhafs](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@sammyhafs](https://community.plotly.com/u/sammyhafs)\
**Post date:** [March 30, 2018, 3:58am UTC](https://community.plotly.com/t/latest-version-of-polar-plots-not-working/9310/1 "2018-03-30T03:58:50Z")

</div>

Hey folks -

I’m unable to get plot type “scatterpolar” to work in shiny (either locally or when deployed to shinyio. I get this error message:

Warning: Error in : Trace type must be one of the following:  
‘scatter’, ‘box’, ‘bar’, ‘heatmap’, ‘histogram’, ‘histogram2d’, ‘histogram2dcontour’, ‘pie’, ‘contour’, ‘scatterternary’, ‘sankey’, ‘scatter3d’, ‘surface’, ‘mesh3d’, ‘scattergeo’, ‘choropleth’, ‘scattergl’, ‘pointcloud’, ‘heatmapgl’, ‘parcoords’, ‘scattermapbox’, ‘carpet’, ‘scattercarpet’, ‘contourcarpet’, ‘ohlc’, ‘candlestick’, ‘area’

I checked and I am on the latest version of plotly (i.e., 4.7.1) - any ideas or anyone else having the same issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![bcd](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bcd](https://community.plotly.com/u/bcd)\
**Post date:** [April 2, 2018, 7:24am UTC](https://community.plotly.com/t/latest-version-of-polar-plots-not-working/9310/2 "2018-04-02T07:24:47Z")

</div>

Hey @sammyhafs

The below code works for me on `4.7.1.900`. Perhaps, try the dev version `devtools::install_github("ropensci/plotly")`.

```
library(shiny)
library(plotly)

ui <- fluidPage(
  plotlyOutput("plot"),
  verbatimTextOutput("event")
)

server <- function(input, output) {
  
  output$plot <- renderPlotly({
    plot_ly(
      type = 'scatterpolar',
      r = c(0,1,2,2),
      theta = c(0,45,90,0),
      mode = 'markers'
    )
  })
  
  output$event <- renderPrint({
    d <- event_data("plotly_hover")
    if (is.null(d)) "Hover on a point!" else d
  })
}

shinyApp(ui, server)
```

---

<div class="post-metadata">

**Author:** ![broen](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/broen/32/2878_2.png) [@broen](https://community.plotly.com/u/broen)\
**Post date:** [April 4, 2018, 7:03am UTC](https://community.plotly.com/t/latest-version-of-polar-plots-not-working/9310/3 "2018-04-04T07:03:31Z")

</div>

I have the exact same problem with the examples from plot.ly/r/polar-chart/ in RStudio and Version 4.7.1

---

<div class="post-metadata">

**Author:** ![bcd](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bcd](https://community.plotly.com/u/bcd)\
**Post date:** [April 5, 2018, 1:20pm UTC](https://community.plotly.com/t/latest-version-of-polar-plots-not-working/9310/4 "2018-04-05T13:20:42Z")

</div>

Hey @broen

see explanation here [Radarchart Trace Error](https://community.plotly.com/t/radarchart-trace-error/9439/3?u=bcd)

---

<div class="post-metadata">

**Author:** ![harryzhu](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/harryzhu/32/5114_2.png) [@harryzhu](https://community.plotly.com/u/harryzhu)\
**Post date:** [December 24, 2018, 8:49am UTC](https://community.plotly.com/t/latest-version-of-polar-plots-not-working/9310/5 "2018-12-24T08:49:12Z")

</div>

@sammyhafs

same issue + 1;  
if I update to 4.8, or under 4.7, it do not find the ‘scatterpolar’ option in type argument.
