
More shiny
Grayson White
Math 241
Week 6 | Spring 2026
Mon Lecture
shiny applicationsWed Lecture
shiny dashboards with Quarto#| eval: false in the chunks that have leaflet maps#| eval: true for the leaflet map chunks)leaflet maps and interact with them easilyshiny Recap – Main ComponentsServer-side:
Save the object with output$___.
Use a render___({}) function to create the object.
Access inputs with input$___.
UI-side:
___Output().Troubleshooting common issues:
ui.ui.observe()Let’s look at another app in the learn-shiny repo.
Features leaflet functions and observe().
Need to use leafletProxy() so that the entire map isn’t redrawn with each update to the inputs.
Create a DESCRIPTION text file with this text:
Title: Math 241 Names
Author: Grayson White
AuthorUrl: https://graysonwhite.shinyapps.io/my_first_app/
DisplayMode: Showcase
Type: Shiny
shiny dashboardsWill allow you to create dashboards that harness the power of shiny but also the simplicity of Quarto.
Can also been used to create stand-alone HTML files with some interactivity.
I converted the Shiny App we created last time into a Quarto shiny dashboard.
There are lots of potential widgets to consider including for inputs.
My apps were ugly. Start with ugly apps but then make them pretty!
With that in mind…
Create an interactive web application/dashboard using shiny or Quarto shiny dashboards.
Make sure to satisfy the requirements (given in the handout).
But then stretch yourself to add new features and a “non-default” look to your app.
Will have opportunities for feedback from your peers and from me as you are iterating toward the final product!
Also as part of the project, each group member will write a “data scientist’s statement” and reflect on the goals and design choices of the dashboard.
Grab appPractice.qmd from the “learn-shiny” Github repo.
R (strings / dates / factors)