Mapping air quality

Опубликовано: 04 Апрель 2026
на канале: Milos Makes Maps
6,182
234

In this tutorial, you will learn how to interpolate the air quality index (AQI) data points and create beautiful 2D and 3D choropleth maps using ggplot2 and rayshader in R

0:00 Prologue
01:05 Intro
01:43 Load libraries
03:50 WAQI website
07:40 Build GET request
09:07 Clean up the data
16:48 Make grid
22:56 Data frame to sf points
25:38 Interpolate points
28:34 Theme, color, breaks
35:07 Lambert projection
35:25 2D map of air pollution
38:57 Save 2D map
39:59 Create scene
44:32 Render scene
47:56 3D map of air pollution
48:10 Closing

Check the full code in my GitHub repo:
https://github.com/milos-agathon/mapp...

Follow my work on Instagram:
  / milos_makes_maps  

Let's connect on X:
  / milos_agathon  

If you like my work, consider buying me a coffee:
https://www.buymeacoffee.com/milospop...

Music credits:
---------------------------------------------------------------------------------------------------
LAKEY INSPIRED
Track Name: "Blue Boi"
Music By: LAKEY INSPIRED @   / lakeyinspired  
Original upload HERE -    • LAKEY INSPIRED - Blue Boi  

• LAKEY INSPIRED - Blue Boi
Official "LAKEY INSPIRED" YouTube Channel HERE -    / @lakeyinspired  

@lakeyinspired
License for commercial use: Creative Commons Attribution 3.0 Unported "Share Alike" (CC BY-SA 3.0) License.
Full License HERE - https://creativecommons.org/licenses/...
Music promoted by NCM https://goo.gl/fh3rEJ