Nov 6, 2024
|
26 min
|
20.3k views
How to Build a Dashboard in R or Python with Quarto, Part 1
A Quarto dashboard is a.qmd file with dashboard as its output format. Headings become the layout: level one headings make pages, level two make rows or columns, and each code chunk becomes a card. The code itself is hidden in the output, so the reader sees only the result. The same document works in R or in Python, and this part builds it both ways using Olympics data. With Mine Cetinkaya-Rundel.
What you will learn
What a Quarto dashboard is, and how it differs from a Shiny app How pages, rows, columns, tabsets and cards fit together Why your headings become the layout, and how to plan them How the YAML header controls the format, the theme and the logo How to build the same dashboard in R and in Python Why the code is hidden by default in dashboard format How to give cards titles, set the orientation, and control heights and widths Chapters 0:00 What a Quarto dashboard is 0:15 Dashboard anatomy: pages, rows, columns and cards 1:38 How content is organised on the page 3:17 Sidebar and row layouts compared 4:55 Multiple pages, a logo and custom styling 6:34 The YAML header, and where your content goes 7:40 Your first dashboard in R 8:13 Why the code disappears in dashboard format 9:51 Card titles from section headings 10:30 The same dashboard in Python 11:43 Live build: setting up the project 14:47 Adding the first visualisation 16:26 How headings become layout 18:04 Columns and navigation buttons 19:43 Adding a logo 21:22 Switching the dashboard orientation 23:00 Source editor or visual editor 24:39 Controlling card heights and widths
Learn more Quarto dashboards: https://quarto.org/docs/dashboards/ Dashboard layout: https://quarto.org/docs/dashboards/layout.html Deploying a dashboard: https://quarto.org/docs/dashboards/deployment.html Quarto: https://quarto.org
Quarto
Shiny
Dashboard in R
R Dashboard
Dashboards in Python
Quarto Dashboard
How to Build a Dashboard
Quarto
Qmd File
Data Dashboard Tutorial
Quarto Layout
Python Dashboard
Quarto Dashboards Tutorial
Olympics Data
Posit