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
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')
.
14.1 More Literature
Overview
- https://bookdown.org/yihui/rmarkdown/shiny-documents.html
- https://shiny.rstudio.com/tutorial/
- https://shiny.rstudio.com/articles/
- https://shiny.rstudio.com/gallery/
- https://rstudio.github.io/leaflet/shiny.html
- https://mastering-shiny.org/
More Help with Shiny Apps
- https://shiny.rstudio.com/tutorial/written-tutorial/lesson1/
- https://mastering-shiny.org/basic-app.html
- https://towardsdatascience.com/beginners-guide-to-creating-an-r-shiny-app-1664387d95b3
- https://shiny.rstudio.com/articles/interactive-docs.html
- https://bookdown.org/yihui/rmarkdown/shiny-documents.html
- https://shiny.rstudio.com/gallery/plot-interaction-basic.html
- https://www.brodrigues.co/blog/2021-03-02-no_shiny_dashboard/
- https://bookdown.org/yihui/rmarkdown/shiny.html
- https://shinyserv.es/shiny/
- https://bookdown.org/egarpor/NP-UC3M/kre-i-kre.html#fig:kreg
- https://engineering-shiny.org/