Game of Thrones Analyis

Author

Me, but I copied the code

Here we analyse the screen times of all character in the HBO TV Series Game of Thrones (a pretty good really brutal series, btw). Watch it at your own risk.

What are the screentimes?

Loading in the required packages:

library("readr")
library("ggplot2")
library("dplyr")
library("ggrepel")

Importing the data:

screentimes <- read_csv("data/GOT_screentimes_1.csv")

Extracting the characters with the 10 highest screen times:

screentimes_high <- top_n(screentimes, 10, screentime)

Creating a scatter plot of the screen times:

ggplot(screentimes, aes(screentime, episodes)) +
  geom_point() +
  # Adding labels to the characters with 10 highest screentimes
  geom_text_repel(data = screentimes_high, 
                  aes(label = name), 
                  min.segment.length = 0)

I’ve now added the preview, so I’ve got to check whether I can now see the updates.

This preview stuff is nice, but doesn’t it eat up a lot of my RAM?