14 Web Applications

Shiny is an R packag to build web applications.

Shiny Flexdashboards are nicely formatted Shiny Apps. While it is possible to use Shiny without the Flexdashboard formatting, I think it is easier to remember

  • .R files are codes for statistical analysis
  • .Rmd files are for communicating: reports, slides, posters, and apps

Example: Histogram Download the source file TrialApp1_Histogram_Dashboard.Rmd and open it with rstudio. Then run it with

rmarkdown::run('TrialApp1_Histogram_Dashboard.Rmd')
  • Within the app, experiment with how larger sample sizes change the distribution.

  • Edit the app to let the user specify the number of breaks in the histogram.

If you are having difficulty, you can try working first with the barebones shiny code. To do this, download TrialApp0_Histogram.Rmd and edit it in Rstudio. You can run the code with rmarkdown::run('TrialApp0_Histogram.Rmd').