Learn how to make interactive tables, graphs and text from data.
In a two-sessions workshop, Nick van Doormaal demonstrated how to use the shiny
package to create interactive web applications. Note that this was the first session of a two-sesssion workshop. This first session was be a basic introduction on the different components of a shiny app. In the second session (on Thursday March 31) we explored into more depth how ‘reactivity’ works, an important component of most shiny apps.
For inspiration, you may want to spend a few minutes viewing some fun apps made with shiny
, or this shiny
gallery.
To prepare for the workshop, you could install these two R packages (just copy and paste this line into your R Studio Editor and run it)
install.packages(c(“tidyverse”, “shiny”))
Nick van Doormaal is a former PhD candidate at the NSCR and currently a data analyst at the environmental service of the province of Gelderland. He got into R during his MSc thesis and internship and has been using R ever since.
On Nick’s GitHub repository nscr-shiny-workshop you can find the data and the R script that documents the development that Nick demonstrated during the second workshop on Thursday March 31.
To download files from GitHub you can:
Clone
the repository to create a local copy in your computer. To clone a repository, follow the instructions here.
Alternatively, you can:
ZIP
. To do this, go to the repository and click on the green code
button, then select download ZIP
. Unzip the downloaded file into a folder on your local computer.raw
button. Then right click on the new page and select save as
. Don’t forget to put the proper extension in the save name, like .R
or .Rmd
.
For attribution, please cite this work as
Doormaal (2022, March 17). NSC-R Workshops: Creating web applications with Shiny (1/2). Retrieved from https://nscrweb.netlify.app/posts/2022-03-17-shiny-1of2/
BibTeX citation
@misc{doormaal2022creating, author = {Doormaal, Nick van}, title = {NSC-R Workshops: Creating web applications with Shiny (1/2)}, url = {https://nscrweb.netlify.app/posts/2022-03-17-shiny-1of2/}, year = {2022} }