title: R - ggplotly set labels (rshiny)
body: <p>I have a problem with ggplotly. I would like to change the labels of my x when the mouse is going on the plot. I have the following: y:number and I would like: People in middle class:number. See picture.</p>
  
  <p><a href="https://i.stack.imgur.com/bSfKQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bSfKQ.png" alt="enter image description here"></a></p>
  
  <p>Here is my R code (within the server):</p>
  
  <pre><code>output$plotly1 &lt;- renderPlotly({
   y&lt;-glob_mid_class[input$years]
   p&lt;-ggplot(mid_cl(), aes(x=Region, y=y)) +
      geom_bar(stat="identity") +
      ggtitle("Global Middle Class") +
      xlab("Regions") + ylab("People in middle class") +
      theme(plot.title = element_text(hjust = 0.5)) + ylim(0,3000)
   ggplotly(p)
  })
  </code></pre>
  
  <p>Thank you for helping</p>