Black Lives Matter. Please consider donating to Black Girls Code today.

Latest version of polar plots not working?

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?


1 Like

Hey @sammyhafs

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


ui <- fluidPage(

server <- function(input, output) {
  output$plot <- renderPlotly({
      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)

I have the exact same problem with the examples from in RStudio and Version 4.7.1

1 Like

Hey @broen

see explanation here Radarchart Trace Error


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