Lecture 20
Duke University
STA 313 - Spring 2024
HW 5 due today at 5 pm
RQ 6 (last quiz) to be posted by the weekend, covers up to and including tables, due at 10 am on Tue, April 15
Work on projects tomorrow in lab
Code for Shiny app: https://github.com/vizdata-s24/vizdata-s24/blob/main/slides/18/manager-survey/app.R
Code for Shiny+bslib dashboard: https://github.com/vizdata-s24/vizdata-s24/blob/main/slides/19/manager-survey-bslib/app.R
Any questions about any of the components from last week?
A new output format for easily creating
dashboards from .qmd
files
Navigation Bar and Pages — Icon, title, and author along with links to sub-pages (if more than one page is defined).
Sidebars, Rows & Columns, and Tabsets — Rows and columns using markdown heading (with optional attributes to control height, width, etc.). Sidebars for interactive inputs. Tabsets to further divide content.
Cards (Plots, Tables, Value Boxes, Content) — Cards are containers for cell outputs and free form markdown text. The content of cards typically maps to cells in your notebook or source document.
Each code chunk makes a card, and can take a title
Each code chunk makes a card, doesn’t have to have a title
Text content
Value boxes
Expanding cards
Dashboards are typically just static HTML pages so can be deployed to any web server or web host!
https://quarto.org/docs/dashboards/interactivity/shiny-r
For interactive exploration, some dashboards can benefit from a live R backend
To do this with Quarto Dashboards, add interactive Shiny components
Deploy with or without a server!
ae-15
- Step 1ae-15
- Step 2Parameters: Make date a parameter.
ae-15
- Step 3Theming: Add a light and dark theme.
https://github.com/mine-cetinkaya-rundel/dashing-through-snow