# load library
library("readr")
library("ggplot2")
library("dplyr")
library("ggrepel")
# load data about the screentime of different characters in the show
screentimes <- read_csv("data/GOT_screentimes_1.csv")
# extract the 10 characters with the highest screentimes and save it in a new variable
screentimes_high <- top_n(screentimes, 10, screentime)
# plot screentime of all characters and label the top 10
ggplot(screentimes, aes(screentime, episodes)) +
geom_point() +
geom_text_repel(data = screentimes_high,aes(label = name),min.segment.length = 0)GOT analysis 2024
Abstract
Introduction to Quarto Files Patterns and Trends Course FS24 Session 3
Analysis of Game of Thrones Screentime
We want to analyse the screentime of the different characters in the show Game of Thrones.
The data source is: http://www.imdb.com/character
Preview laden ist möglich über den Befehl: quarto preview filname.qmd