Introduction

This Notebook documents the progress of constructing charts in the lead-up to and duration of the 2020 League of Legend Mid-Season Cup between the LCK and LPL. Because of the COVID-19 pandemic, the regular League of Legends MidSeason Invitational (MSI) has been cancelled. This new tournament between the League of Legends Pro League (LPL) and League Champions Korea (LCK) has been created to hold some place of a Mid-Season tournament for players and fans.

Installing Packages

Going into the analysis, we’ll some packages. These packages are recommended by Tom’s Cookbook for better Viz (https://jthomasmock.github.io/nfl_plotting_cookbook/) , which was initially constructed for nflscrapR data.

install.packages('tidyverse') # Data Cleaning, manipulation, summarization, plotting
install.packages('gt') # beautiful tables
install.packages('DT') # beautiful interactive tables
install.packages('ggthemes') # custom pre-built themes
install.packages('ggforce') # better annotations
install.packages('ggridges') # many distributions at once
install.packages('ggrepel') # better labels
install.packages('ggbeeswarm') # beeswarm plot
install.packages('extrafont') # for extra fonts

Now that we’ve installed the packages, we’re going to load them into our R session.

library(tidyverse) # Data Cleaning, manipulation, summarization, plotting
library(gt) # beautiful tables
library(DT) # beautiful interactive tables
library(ggthemes) # custom pre-built themes
library(ggforce) # better annotations
library(ggridges) # many distributions at once
library(ggrepel) # better labels
library(ggbeeswarm) # beeswarm plots
library(extrafont) # for extra fonts

Reading in the Playoff Data

For this analysis we’re going to be using the most recent playoff data for the teams competing.
## LPL
1. JD Gaming (LPL Spring 2020 Champions) 2. Top Esports 3. FunPlus Phoenix (Reigning 2019 World Champions) 4. Invictus Gaming (2018 World Champions)

LCK:

  1. T1 (LCK Spring 2020 Champions, 3x World Champions, 2x MSI Champions)
  2. Gen.G (2017 World Champions)
  3. DragonX
  4. DAMWON Gaming

To read in this data, we’re going to pull in the data from Oracle’s Elixir (https://oracleselixir.com/) , which has been separated to include the playoffs of the LPL, LCK, LCS, and LEC. The LCS and LEC data will be useful for further exploration and ‘what-if’ discussion.

 library(readxl)
LCK_playoff_data <- read_excel("2020 spring match data OraclesElixir 2020-05-11.xlsx", sheet = "LCK-Playoffs")
View(LCK_playoff_data)
  library(readxl)
LPL_playoff_data <- read_excel("2020 spring match data OraclesElixir 2020-05-11.xlsx", sheet = "LPL-Playoffs")
View(LPL_playoff_data)
library(readxl)
LCS_playoff_data <- read_excel("2020 spring match data OraclesElixir 2020-05-11.xlsx", sheet = "LCS-Playoffs")
View(LCS_playoff_data)
library(readxl)
LEC_playoff_data <- read_excel("2020 spring match data OraclesElixir 2020-05-11.xlsx", sheet = "LEC-Playoffs")
View(LEC_playoff_data)

Cleaning the Data

Now that we have the playoff data for each region, we’re going to narrow it down to each team competing, as well as the top four teams from the LCS and LEC.
The top four teams in the LEC and LCS for the Spring Split in 2020 were:
## LEC 1. G2 Esports (LEC 2020 Spring Champions, 2019 MSI Champions) 2. Fnatic (2011 World Champions) 3. Origen 4. MAD Lions
## LCS 1. Cloud9 2. Flyquest 3. Evil Geniuses 4. TeamSoloMid