πŸ—“οΈ Week 07 - Intro to the Grammar of Graphics

DS105 - Data for Data Science

Author
Published

06 November 2022

This week I will tell you how to plot data using a concept called the grammar of graphics. There are several packages in both R and Python to create plots, but we will focus on the ggplot2 (R) and plotnine (python’s version of ggplot2). You will have to use one of these packages in your final project (see final project marking criteria).

This time, I will use R to demonstrate the code. It will make it easier to point out how the original ggplotwas adapted into python. Curious to see what kind of plots you can create? Check out the R Graph Gallery website.

How to come prepared
  • If you are a python user, install the latest version of Anaconda. Install the plotnine package.
  • If you are an R user, try to have R and RStudio IDE installed in your computer before the lecture today. Install the tidyverse package.

Starting this week, lectures will take a place at OLD.4.10. Join us next Tuesday, 8 November 2022 from 4 pm to 6 pm.

Assessments

Deadlines extended to 14 November 2022: