Search code examples
rggplot2shinyinteractive

R Shiny - Highlight datapoints on ggplot


I'm wanting to highlight adjacent datapoints on mouse hover, with a textbox (on-graph) displaying the x and y variables, WITHOUT using plotly (I don't like the additonal features plotly provides, or its banners above - great package, just not what I'm looking for in this application).

Essentially recreating the "Goods and Services Trade" and "Trade balance" graphs on the main page of the main page here: https://gallery.shinyapps.io/nz-trade-dash/?_ga=2.125477258.1669624743.1664839955-1927531303.1660016860

Many thanks!


Solution

  • Appears to be using the Highcharts package, by Joshua Kunst.

    It, 'Is a R wrapper for Highcharts javascript library and its modules. Highcharts is very flexible and customizable javascript charting library and it has a great and powerful API': https://jkunst.com/highcharter/#:~:text=Highcharter%20is%20a%20R%20wrapper,x)%20you%20can%20chart%20data