With Quarto you can weave together narrative text and code to produce elegantly formatted output as documents, web pages, blog posts, books, and moreβ¦
Since Quarto 1.4!
Dashboards are composed of cards.
Cards are arranged into rows and columns.
Pages, tabsets, and sidebars allow for more advanced layouts.
Letβs make a dashboard, step-by-step
First with R
Then with Python
format: dashboard
format: dashboard
dashboard-py.qmd
dashboard-py.qmd
dashboard-py.qmd
---
title: "My first Quarto dashboard"
format: dashboard
---
```{python}
from plotnine import ggplot, aes, geom_point, geom_bar
from plotnine.data import mpg
```
```{python}
#| title: Highway vs. city mileage
(
ggplot(mpg, aes(x = "cty", y = "hwy"))
+ geom_point()
)
```
```{python}
#| title: Drive types
(
ggplot(mpg, aes(x = "drv"))
+ geom_bar()
)
```
dashboard-py.qmd
---
title: "My first Quarto dashboard"
format: dashboard
---
```{python}
from plotnine import ggplot, aes, geom_point, geom_bar
from plotnine.data import mpg
```
```{python}
#| title: Highway vs. city mileage
(
ggplot(mpg, aes(x = "cty", y = "hwy"))
+ geom_point()
)
```
```{python}
#| title: Drive types
(
ggplot(mpg, aes(x = "drv"))
+ geom_bar()
)
```
Slides for this video: mine.quarto.pub/quarto-dashboards/1-hello-dashboards
Source code for slides: github.com/mine-cetinkaya-rundel/quarto-dashboards
Go to the GitHub repo github.com/mine-cetinkaya-rundel/olympicdash.
Click on Use This Template to create a repo for yourself using this one as a template.
Clone that repo and open it in your preferred IDE / editor.
Work on one of the following depending on your preferred language:
olympicdash-r-1.qmd
olympicdash-py-1.qmd
Your goal is to create one of the following dashboards, and then deploy to QuartoPub.