SISBID 2025
https://github.com/dicook/SISBID
😱 If you are not confident going alone, work through the steps in the next few slides instead, to make an app.
Out of ideas? Try the TidyTuesday Cocktail Data and this prompt
✅ Using the RStudio File
menu,
New file
,Single file
This will create a folder in your workspace with the same name as you gave your app. It will also open the app.R
file in your text editor pane.
🛑 Click the Run App
button on the RStudio window.
✅ Click Publish
to upload your app to the shinyapps.io server.
㊗️ You’ve just published your first app
Change the plot to use ggplot
, this involves changing the server function to be this:
You will also need to add library(ggplot2)
at the top of the file, just after library(shiny)
.
🛑 Click the Run App
button on the RStudio window. (Fix any errors)
✅ Click Publish
to re-upload your app to the shinyapps.io server.
㊗️ You’ve just published your first modified app
Change from a static ggplot plot, to an interactive plotly plot, by
Change the server function to look like this. Note renderPlotly
Add library(plotly)
to the top of the file.
🛑 Click the Run App
button on the RStudio window. (Fix any errors)
Convert the slide into a numeric input, by changing the ui
function to be:
(The numericInput
replaces the sliderInput
code)
🛑 Click the Run App
button on the RStudio window. (Fix any errors)
✅ Click Publish
to re-upload your app to the shinyapps.io server.
㊗️ You’ve just published your second modified app
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.