Couple plot and table on a R shiny app

shiny
plotly

#1

I am trying to look for examples if any where you can couple the plot and the table from which it is being plotted. As in if you hover or select on a line chart it will hightlight the corresponding data on the table.

Thank you.


#2

If your data is small, an easy way to do this is using crosstalk, see this example: https://rstudio.github.io/crosstalk/index.html

If your data is too large to send to the client all at once, you could consider using server side processing as in this example: https://yihui.shinyapps.io/DT-rows/