Hi everyone,
I've just been asked to do an interactive map for someone on a fairly tight timeline, and I'm weighing up the best option to implement it. It's going to be a list of regions (groups of countries), and when you click or hover on them a bunch of statistics are reported. The only tricky part is that we'd like to have a slider either on the map or on this info pane, whereby dragging it updates the statistics. All the numbers are pre-crunched.
None of this is too controversial, but we don't want to run a Shiny app here: we'd like to be able to embed it on our own website as a fairly static affair and hopefully package it up to give to others. If it's a choice between that and the slider, the portability wins out. So, really, it probably needs to be something we can export with htmltools.
The other options I'm familiar with are leaflet and plotly. The former I think is probably going to face the same problem (requires a Shiny server for the interactivity). The latter I've seen use interactivity with ggplotly, and I understand it does basic mapping (maybe no fancy map tiles like leaflet, but that's an acceptable compromise).
Does anyone have any other ideas for doing this?