Skip to content

othomantegazza/milano-air-quality-v2

Repository files navigation

Proof of Concept Dashboard with Quarto

A proof-of-concept dashboard made with Quarto, R, Observable and D3 and deployed through Github Actions.

I started making this project inspired by the great tutorial on dashboarding in R by Rami Krispin.

I first developed this other dashboard, on the same topic, to test quarto capabilities when used with R and ggiraph.

This dashboard instead relies less on R graphical capabilities and more on Javascript and D3, to build custom, web-native visualization.

Run

If you want to run this code locally:

  1. Install Quarto CLI on your computer
  2. Open air-quality.Rproj with Rstudio.
  3. Run renv::restore() at the R console.
  4. Run quarto preview at the command line terminal (shell).

Data Source

This dashboard fetches daily the Open Data on Air Pollution from the Open Data Portal of the City of Milano, I would like to thank them for providing well formatted and easy to reach Open Data.

On the other side, Air pollution is a huge issue in the area, and in my opinion, the initiatives on public transport and bicycle paths by the City of Milano, Regione Lombardia, and other the public administration entities are well below the level that would be needed to solve or even ease this issue.

License

This main work comes with no warranty and is LICENSED under the CC4-BY-SA 4.0 license. Find the full text of the license here.

The color palette is a Scientific Color Map, published by [Fabio Crameri], and made available also under the MIT Licensed.

The font used are: