vrodriguezf / deepvats

Deep Visual Analytics for Time Series

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zooming and panning the projections plot with click-drag and scroll

vrodriguezf opened this issue · comments

Currently the way of zooming and panning the projections is quite
clunky. It would be great to have something eaiser as the
tensorflow embedding projector

This can be done with plotly, wraping the projections_plot ggplot2 object inside a call to plotly::ggplotly and setting its config with scrollZoom. However, moving to plotly breaks the current click and brush listeners.
They should be easily replaced by their equivalents in plotly, which are all gathered in the event_data function (More info in the links below)

Useful things:
https://stackoverflow.com/questions/61000088/plotly-ggplotly-r-scroll-zoom-label-size-and-tooltip-options
https://plotly-r.com/linking-views-with-shiny.html
https://community.plotly.com/t/how-to-achieve-click-and-brush-with-plotly-in-r/21106