r2d3 icon indicating copy to clipboard operation
r2d3 copied to clipboard

Pass info from D3 back to [R]

Open TS404 opened this issue 4 years ago • 1 comments

Could data be passed back from the visualisation to an object in [R]?

For example. on this simple shiny app I'd ideally like to be able to populate a list in [R] based on nodes that are clicked. Currently, I have to do it via a checkbox list and clicking the nodes just calls a basic 'alert("You clicked " + d.name);'.

TS404 avatar Apr 27 '20 11:04 TS404

Take a look here: https://shiny.rstudio.com/articles/communicating-with-js.html

jlfsjunior avatar Jun 03 '20 08:06 jlfsjunior