A weblog sharing great ideas, theory, and implementations in data, sciences, and beyond.
Monday, May 18, 2020
Sunday, May 3, 2020
Shiny and plotly event handle examples and tutorials
1. Example use case of plotly event_data & plotlyProxy
https://github.com/mw201608/Shiny/blob/master/plotly_event_data.R
2. How to test if a trace is hidden or shown
https://stackoverflow.com/questions/54822671/r-plotly-how-to-observe-whether-a-trace-is-hidden-or-shown-through-legend-click/54825337#54825337
3. Hide and show sidebar panel
https://stackoverflow.com/questions/47896963/hide-and-show-sidebar-panel-in-shiny
4. Proxy Interface in R
https://plotly.com/r/plotlyproxy/
5. Restyle the traces
https://community.plotly.com/t/how-can-i-determine-how-many-traces-exists-in-my-graph-and-what-are-those/6797
6. Sending messages from Shiny to JavaScript and back
https://shiny.rstudio.com/articles/js-send-message.html
https://shiny.rstudio.com/articles/communicating-with-js.html
7. Shiny performance
https://plotly-r.com/linking-views-with-shiny.html#shiny-performance
8. Intro JS
https://introjs.com/
https://github.com/mw201608/Shiny/blob/master/plotly_event_data.R
2. How to test if a trace is hidden or shown
https://stackoverflow.com/questions/54822671/r-plotly-how-to-observe-whether-a-trace-is-hidden-or-shown-through-legend-click/54825337#54825337
3. Hide and show sidebar panel
https://stackoverflow.com/questions/47896963/hide-and-show-sidebar-panel-in-shiny
4. Proxy Interface in R
https://plotly.com/r/plotlyproxy/
5. Restyle the traces
https://community.plotly.com/t/how-can-i-determine-how-many-traces-exists-in-my-graph-and-what-are-those/6797
6. Sending messages from Shiny to JavaScript and back
https://shiny.rstudio.com/articles/js-send-message.html
https://shiny.rstudio.com/articles/communicating-with-js.html
7. Shiny performance
https://plotly-r.com/linking-views-with-shiny.html#shiny-performance
8. Intro JS
https://introjs.com/
Saturday, May 2, 2020
plotly event_register
* The `event` argument of the `event_data()` function now supports the following events: `plotly_selecting`, `plotly_brushed`, `plotly_brushing`, `plotly_restyle`, `plotly_legendclick`, `plotly_legenddoubleclick`, `plotly_clickannotation`, `plotly_afterplot`, `plotly_doubleclick`, `plotly_deselect`, `plotly_unhover`. For examples, see `plotly_example("shiny", "event_data")`, `plotly_example("shiny", "event_data_legends")`, and `plotly_example("shiny", "event_data_annotation")`,
* New `event_register()` and `event_unregister()` functions for declaring which events to transmit over the wire (i.e., from the browser to the shiny server). Events that are likely to have large overhead are not registered by default, so you'll need to register these: `plotly_selecting`, `plotly_unhover`, `plotly_restyle`, `plotly_legendclick`, and `plotly_legenddoubleclick`.
* New `event_register()` and `event_unregister()` functions for declaring which events to transmit over the wire (i.e., from the browser to the shiny server). Events that are likely to have large overhead are not registered by default, so you'll need to register these: `plotly_selecting`, `plotly_unhover`, `plotly_restyle`, `plotly_legendclick`, and `plotly_legenddoubleclick`.
Subscribe to:
Posts (Atom)