πŸ§‘β€πŸ« Week 05 Lecture

Data Visualisation with the Grammar-of-Graphics

Author

Dr Jon Cardoso-Silva

Published

20 February 2025

πŸ₯… Learning Goals
By the end of this lecture, you should be able to: i) Understand the core principles of the Grammar of Graphics, ii) Create effective visualisations using lets-plot, iii) Apply data visualisation best practices to your Mini-Project, iv) Use new Pandas techniques for data manipulation.
DS105W course icon

πŸ“Time and Location: Tuesday, 20 February 2025 from 4-6 pm at MAR.1.04

This week’s lecture will focus on data visualisation principles and practical implementation using lets-plot, with specific emphasis on techniques you’ll need for the Mini-Project.

πŸ““ Interactive Lecture Format

During this lecture:

  1. First Hour: Live demonstration of the Grammar of Graphics using lets-plot
  2. Second Hour: Mini-Project support and introduction to new Pandas techniques (ideally, guided by your questions so please come with questions!)
  3. The focus will be on practical implementation - no slides, just coding
  4. Don’t worry if you can’t follow along with the code. Make sure to take notes on the key concepts and techniques discussed (you can save them to your β€œWeek 05” folder on Nuvolos)

πŸ“‹ Preparation

Before the lecture

  • Review the ✍️ Mini-Project I requirements
  • Start working on your project to have specific questions ready
  • If you want to experiment with something I’ll show in the lecture, make sure you can access Nuvolos

🎬 Lecture Material

The lecture will be based on two Jupyter notebooks that will be shared after the session:

  1. W05-Lecture-NB01-Grammar-of-Graphics.ipynb: Fundamentals (and the why) of data visualisation using lets-plot
  2. W05-Lecture-NB02-Pandas-Tricks.ipynb: Useful data manipulation techniques for the Mini-Project

πŸ“‹ TAKE NOTE:

  • There won’t be traditional slides for this lecture
  • The focus is on practical implementation and problem-solving
  • Feel free to ask questions at any point, especially during the second hour

πŸ“₯ Post-Lecture Actions

  1. Review the Jupyter notebooks from today’s lecture
  2. Practice creating visualisations with lets-plot
  3. Apply the demonstrated techniques to your Mini-Project
  4. Use the #help channel on Slack if you need clarification or help

πŸ“š Additional Resources