Ooh, Shiny!: R Shiny apps as a teaching tool

Contributing author Dan Adrian is an Associate Professor of Statistics at Grand Valley State University.

Interactive web applications (or apps), such as the Rossman-Chance collection, are popular tools for teaching statistics because they help illustrate fundamental concepts such as randomness, sampling, and variability through dynamic visualizations. The StatKey collection of apps created for the Lock5 textbook series to demonstrate and perform simulation-based inference is another example1. Historically, despite the utility of the web apps and the ease of their use, it was difficult for most stat educators to create or modify them because of the requisite coding knowledge in HTML, CSS, and Java/Javascript. Thankfully, RStudio created the R package {shiny}, which allows web apps (i.e., Shiny apps) to be created using R code alone, and the HTML/CSS/Javascript work is done by the package “behind the scenes”.

Continue reading “Ooh, Shiny!: R Shiny apps as a teaching tool”