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

Data Visualisation with the Grammar-of-Graphics

Author
Published

25 October 2024

Image created with the AI embedded in MS Designer using the prompt 'abstract salmon pink light blue icon depicting the metaphysical experience of cleaning up, reshaping, pivoting, and manipulating data in search of the purest insights in data science.'

πŸ“ƒ Schedule

πŸ“Location: πŸŽƒ Thursday 31 October 2024, 4 pm - 6 pm at CLM.5.02

  • Add all materials from previous weeks to the GitHub logo lse-ds105/ds105a-2024 repository created last week.

  • Go over the plots created in previous weeks and explain the code behind them.

    In this course, we want all your plots to be created with the lets-plot package, which is a Python implementation of the ggplot2 package in R. (In a way, you are learning R, too!)

    Plots we will revisit:

    • On πŸ‘¨πŸ»β€πŸ« Week 01 Lecture I shared a few plots about your degree programmes and Year of Study.

    • On πŸ‘¨πŸ»β€πŸ« Week 02 Lecture I shared a few plots about the DS105A grade distribution for the past year.

    • I added a plot to the βœ… Week 03 Formative Solutions

    • There was another plot in the πŸ’» Week 04 Lab

  • We will use whatever time is left to answer your questions about the πŸ“ W06 Summative.

πŸ“‹ Preparation

  • Try to put some work on the ✍️ W06 Summative so you can ask questions that help you progress on it.

  • Halloween costumes optional but encouraged! πŸŽƒ

πŸ“ Lecture Notes

πŸ“‹ TAKE NOTE:

  • You won’t find β€œslides for studying” in this course. I do use slides in my lectures, but they serve as a visual aid to help me organise my thoughts. I tend to post those slides after the lecture on Slack, along with other links and resources.

  • Let me know if you want me to add notes on any specific topic or expand on something you might want to revisit later.

There is no lecture notes ahead of time for this lecture. I will reuse the notebooks from previous weeks and collate them in the GitHub logo lse-ds105/ds105a-2024 repository during the lecture.

How to clone this repository

  1. Go to the repository page

  2. Fork it! Click on the Fork button in the top right corner of the page. This will create a copy of the repository but under your account (so you can make mistakes as you learn without breaking the original).

Figure 1. Forking the repository.
  1. Configure the forked repository

Figure 2. Leave everything as is.
  1. You should see the repository under your account now.

Figure 3. You should see the repository under your account.
  1. Rename or delete the old repository

    If you had already cloned the original repository, you need to rename or delete it before cloning the new one, to avoid conflicts.

    Whether you are on Nuvolos or your own computer:

    • If you took notes on the repository yesterday that you want to keep, rename the folder from ds105a-2024 to something like ds105a-2024-old. If you want to do this via the Terminal, run the command mv ds105a-2024 ds105a-2024-old on bash, zsh or the Powershell
    • Otherwise, it’s safe to delete the folder. If you want to do this via the Terminal, run the command rm -rf ds105a-2024 on bash or zsh. If you are on Powershell, run rmdir ds105a-2024 (Press β€˜A’ when asked)