12.8 Other interactive alternatives
taucharts is my favorite package for interactive scatter plots for two reasons: tooltips automatically include every variable in your data frame, not just the two being plotted; and you can add a dropdown menu to choose different models for trend lines.
Produces a graph like Figure 12.12.
I’ve had occasional problems viewing taucharts graphs in the RStudio viewing panel, but clicking the “show in new window” icon above the panel to open the visualization in a browser usually works fine. See more about the taucharts R package at http://rpubs.com/hrbrmstr/taucharts.
highcharter’s hchart() function is similar to ggplot2 graphing in that “You pass the data, choose the type of chart and then define the aesthetics for each variable,” package creator Joshua Kunst explains on the package’s website. See more at jkunst.com/highcharter.
This R wrapper and htmlwidgets implementation of the MetricsGraphics.js library can create interactive line charts, bar charts, and scatterplots. More information is available at the package’s website, http://hrbrmstr.github.io/metricsgraphics/.
To see other interactive R package options, check out the HTML widgets gallery at http://gallery.htmlwidgets.org.