title: Avoiding a legend in plotly bar chart in r
body: <p>In this graph <a href="https://i.stack.imgur.com/PBQQ9.png" rel="nofollow noreferrer">Bar chart with description</a> I would like to hide the text that appearing into the square in the attached image.  </p>
  
  <pre><code>p &lt;- plot_ly(
       x = ~df1$x1,
       y = ~df1$y1,
       name = "Most frequent words",
       type = "bar",
       mode="markers" ,
  
  color = ~df1$x1 ,
  colors=c("red","blue") , showlegend = FALSE,
  
  ) %&gt;%
  layout(
      title = "Most frequent words for #Dante2018",
      yaxis = list(title = 'Frequency'),
      xaxis = list(title = 'Word', tickangle = -45))
  </code></pre>