Analysis of GOT Data

Author

Louis Ecker

Game of Thrones Series:

How is the screen time and number of episodes correlated? Which characters appear often and in many episodes?

The data comes from…[this beautiful website] (www.got.org)

#Import the relevant libraries
library("readr")
library("ggplot2")
library("dplyr")
library("ggrepel")
#Import the CSV with the GOT Data
screentimes <- read_csv("data/GOT_screentimes_1.csv")
#Ceate new DF with only the top 10 Characters regarding screentime
screentimes_high <- top_n(screentimes, 10, screentime)
#Display screentime vs. number of episodes using dots and add the names of the top 10
ggplot(screentimes, aes(screentime, episodes)) +
  geom_point() +
  geom_text_repel(data = screentimes_high,aes(label = name),min.segment.length = 0)