Online Program Home
My Program

Abstract Details

Activity Number: 407
Type: Invited
Date/Time: Tuesday, August 2, 2016 : 2:00 PM to 3:50 PM
Sponsor: Section on Statistical Graphics
Abstract #318314
Title: HTML Widgets: Interactive Visualizations from R Made Easy!
Author(s): Yihui Xie* and Ramnath Vaidyanathan
Companies: RStudio and Alteryx
Keywords: R language ; HTML widgets ; Shiny ; R Markdown ; JavaScript ; Data visualization

Technical advances of web technologies have brought a rich collection of JavaScript libraries for data visualization and interactive exploration. However, the JavaScript language can be a barrier to data analysts and statisticians. By comparison, the R language, as the "lingua franca" of data analysis and statistical computing, is much more widely known and used. The R package htmlwidgets aims to seamlessly bridge R and JavaScript, and make it possible for R users to call JavaScript libraries without knowing any JavaScript. A JavaScript visualization can be created through pure R syntax just like normal R plotting commands. In this talk, we demonstrate some HTML widgets built on top of JavaScript libraries, such as DataTables (to display tabular data), leaflet (to create interactive maps), dygraphs (to visualize time series), and so on. All HTML widgets work in three scenarios that we will show in this presentation: in the R console (any R console, including RStudio), in R Markdown documents, and in Shiny applications. We will also briefly mention how widgets work under the hood so potential developers know how to write their own widget packages.

Authors who are presenting talks have a * after their name.

Back to the full JSM 2016 program

Copyright © American Statistical Association