R + htmlwidgets + DT + sparkline

Here are some examples with code where I use the R packages DT and sparkline to produce interactive data tables and inline graphs as well as inline graphs within data table cells. Both packages utilize the htmlwidgets package to interface with javascript libraries. With htmlwidgets you can create custom widgets to use specific javascript libraries to display your data from R on the web. I used the above packages along with rmarkdown to make a markdown document containing the example widgets and code, but you can also use widgets within Shiny apps.


This entry was posted by Matt Leonawicz.
%d bloggers like this: