title: Plotly 3D globe not rendering in Shiny app
body: <p>I have been trying to get a 3D globe to appear in the Shiny app.
  The code works perfectly outside of the renderLeaflet (i.e. the globe appears), but not inside it (i.e. the globe does not show up).</p>
  
  <p>Any advise on how to rectify the situation would be most appreciated:</p>
  
  <pre><code>ui &lt;- fluidPage(
    mainPanel( 
      leafletOutput("map"), 
    ))
  
  
  server &lt;- function(input, output) {
  
    output$map &lt;- renderLeaflet({
  
      pal &lt;- c("black", "blue", "red")
  
      axis_props &lt;- list(
        showgrid = T, gridcolor = toRGB("gray40"), gridwidth = 0.5
      )
      globe &lt;- list(
        showland = T, showlakes = T, showcountries = T, showocean = T,
        countrywidth = 0.5,
        landcolor = toRGB("grey90"),
        lakecolor = toRGB("white"),
        oceancolor = toRGB("white"),
        projection = list(
          type = 'orthographic',
          rotation = list(
            lon = -100, lat = 40, roll = 0
          ),
          lonaxis = axis_props,
          lataxis = axis_props
        )
      )
  
      # Loading plotly
      plot_geo(width = 600, height = 600, locationmode = 'country names') %&gt;%  # initializing plotly object
        add_trace(type = 'scatter', locations = ~countries, showscale = T, z = ~HIndex,
                  color = ~HIndex, colors = pal, hoverinfo = 'text', text = ~paste(countries, HIndex)) %&gt;%
        colorbar(title = 'Happiness Index', title = 'Happiness Index of Countries') %&gt;%
        layout(geo = globe, title = "Happiness Index of Countries Around the World (2019)")
  
  
   })
  
  
  }
  
  
  shinyApp(ui = ui, server = server)
  </code></pre>