Skip to content

I decided to make a different graphic for every day of the Olympics!

Notifications You must be signed in to change notification settings

billyfryer/Olympics-Graphs

Repository files navigation

Olympics Graphs

During the 2020 Tokyo Olympic Games, I decided to make a graphic for every day starting with Day 0 (Opening Ceremonies). I loved how much I learned during this time that I decided to do it again for the 2022 Beijing Winter Olympic Games! These include both graphs and tables made with the ggplot2 package and the GT package respectively. I wanted to make the code for these public so that if anyone wanted to make a spinoff or learn some of the things that I learned while creating the graphs, it would be much easier. I have made it so that all code is reproducible.

This GitHub Repo is organized in the following way:

The Data Sets zip file contains all of the data sets used in these graphics. The original folder was too large to put on GitHub as is thus the .zip file needs to be unzipped when downloaded. The noc_regions.csv and athlete_events.csv files are both from https://www.kaggle.com/heesoo37/120-years-of-olympic-history-athletes-and-results/code?datasetId=31029&language=R and the USA WBB Legacy.csv is one that I created using Wikipedia. The only other data used is on Day 12. That data is from USA Today and I found it via Insider.com. That data is directly typed into the R Script for Day 12. For Beijing, I made a lot of datasets on my own since the Kaggle Data Sets I was using did not have 2018 data. The data sources are all in the respective codes.

The Flags and Icons folder contains all flags and sport icons used in the graphics.

The Outputs folder contains outputs from all of the code created. These graphs are seperated into 2 folders, one for the Tokyo Games and another for the Beijing Games. These are labeled by Date and give a very brief description as to what each graphic is about.

Finally, the Tokyo Olympics 2020 Code folder contains all the code from this series. The names follow a similar naming convention as the outputs for easy pairing. Almost every line is commented, but feel free to reach out if anything is confusing. Similarly, the Beijing Olympics 2022 Code folder contains the code for the Beijing 2022 graphs.

The last thing in this GitHub Repo is the Olympics R Project. This helps take care of file paths.

About

I decided to make a different graphic for every day of the Olympics!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages