title: how to remove Trace 0 and Trace 1 in plotly line in Rshiny?
body: <p>In Rshiny, the line plot displays a Trace 0 and Trace 1 on the right-hand top corner of the plot. Clicking on line 0 makes the line disappear while clicking on Trace 1 makes the text on top of the line to disappear. Code as below.</p>
  <pre><code>ui &lt;- fluidPage(plotlyOutput(&quot;fig1&quot;))
  server &lt;- function(input, output) {
    
    Primates &lt;- c('Potar monkey', 'Gorilla', 'Dinosaur', 'Rhesus monkey', 'Chimp')
    Bodywt &lt;- c('a', 'b', 'c', 'd', 'e')
    Brainwt &lt;- c(115, 406, 1320, 179, 440)
    data &lt;- data.frame(Primates, Bodywt, Brainwt)
    
    fig &lt;- plot_ly(data, x = ~Bodywt, y = ~Brainwt, type = 'scatter', mode = 'lines')
    fig &lt;- fig %&gt;% add_text(text = data$Primates, textposition = 'top', textfont = list(color = '#000000', size = 16))
    fig &lt;- fig %&gt;% layout(title = 'Primates Brain and Body Weight',
                          xaxis = list(title = 'Body Weight (kg)',
                                       zeroline = TRUE),
                          yaxis = list(title = 'Brain Weight (g)',
                                       range = c(0,1400)))
    
    output$fig1 &lt;- renderPlotly(fig)
    
  }
  
  shinyApp(ui,server)
  
  </code></pre>
  <p>I need some help to remove Trace 0 and Trace 1.</p>