title: How to make bars in ggplot2 barplot interactive in shiny?
body: <p>I'm plotting a barplot in ggplot2 in a shiny application.</p>
  
  <p><a href="https://i.stack.imgur.com/LlSms.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LlSms.png" alt="enter image description here"></a></p>
  
  <p>What I would like is that when the mouse hovers over one of the bars, the bar becomes highlighted (maybe by a stronger outline) and when I click (or doubleclick) the bar, the corresponding x-value becomes available to be used as input for a <code>textOutput</code>.</p>
  
  <p>I tried to find examples on the shiny documentation, but there it's mostly about returning x-, y-values from the pointer location. Is there an example I could use as a starting point?</p>