title: Shiny hover show ONLY variable value
body: <p>Here's a reprodcuible example, close to a Shiny App I'm working on:</p>
  
  <pre><code>library(ggplot2)
  library(shiny)
  
  ui &lt;- basicPage(
    plotOutput("plot1", hover = "plot_hover"),
    verbatimTextOutput("info")
  )
  
  server &lt;- function(input, output) {
    output$plot1 &lt;- renderPlot({
    ggplot(mtcars, aes(x=wt, y=mpg)) + geom_point()
  })
  
  output$info &lt;- renderPrint({
  nearPoints(mtcars, input$plot_hover, threshold = 10, maxpoints = 1,
             addDist = TRUE)[1]
  })
  }
  
  shinyApp(ui, server)
  </code></pre>
  
  <p>Here's the app, with the hover functionality shown, the white cross is the mouse pointer:
  <a href="https://i.stack.imgur.com/a4ahS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a4ahS.jpg" alt="enter image description here"></a></p>
  
  <p>I want to show only mpg value, no rowname. I tried this with nearPoints:</p>
  
  <pre><code>nearPoints(mtcars, input$plot_hover, threshold = 10, maxpoints = 1,addDist = TRUE)[1,1], which resulted in: 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pcJdT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pcJdT.png" alt="enter image description here"></a></p>
  
  <p>What I want is just the mpg value, no rowname, no [<a href="https://i.stack.imgur.com/a4ahS.jpg" rel="nofollow noreferrer">1</a>], nothing. How can this be done?</p>