I am wondering what is the easiest/most efficient way to create interactive graphs and then embed them into a web page. While I will have a need for static graphs in reports, I will likely need to put some up on the website as well and I have been asked how to make them interactive (hover over with pop-ups, etc.). Thanks!
Hi guys, good topic! I also have an interest in this. Less so for embedding on a website, but the need for interactivity on graphs that would be distributed from RMarkdown for example. I have looked into Shiny, but the cost of hosting on RStudio Connect (rather than using shinyapps.io as it would be confidential information) will probably prove too much.
So sending reports with plots more likely. If the RMarkdown script produced a html page output, can this contain interactivity for the users that receive it, given that they will be end users with no access to the data or R.
Good question, Paul! Yes, you can send HTML documents that you create with RMarkdown and users will get the interactivity embedded within them. That is, if the interactivity is basic (e.g. hovering over a point to see a popup tooltip that explains what it is). Shiny is required for more complex things like rebuilding plots based on user-filtered data.
We talked about this in office hours today. Here’s the recording!