0

I am trying to figure out a way to extract data from a selection of an interactive plot in Shiny. I build a parallel coordinates plot using a package found at https://github.com/timelyportfolio/parcoords which builds a parcoords chart using htmlWidgets. It allows users to make specific slections, as seen below: enter image description hereenter image description here

What I need is a way to extract the highlighted rows from the underlying data set, either through a download button or data table. Is there anyway to pull out this info from the underlying htmlWidget process? Any advice is appreciated.

Stu
  • 1,543
  • 3
  • 17
  • 31

1 Answers1

2

Using crosstalk you can let one htmlwidget talk to another. The dev version of parcoords supports crosstalk integration as does datatable, so you can link the two with minimal effort

yeedle
  • 4,918
  • 1
  • 22
  • 22
  • This has been helpful and works great for well defined plot functions, but I am trying to figure out how to do it for a custom html widget. I am havign a hard time figuring out how to set brush IDs which I can use to update the SharedData object. Thansk for pointing me in the right direction, though. – Stu Jun 07 '17 at 21:56
  • 1
    NVM, got it too work. The version you linked was very helpful. – Stu Jun 08 '17 at 21:56