Ilya Kashnitsky, [email protected], @ikashnitsky
https://ikashnitsky.github.io/share/slides/2106-rostock-retreat.html
https://gist.github.com/ikashnitsky/69a0be97e50bb3fb26e6db96d1178c07
https://gist.github.com/ikashnitsky/7233e7bd13d15407832dd76c3cc895da
https://gist.github.com/ikashnitsky/5f305b91aacd5ea61dbd64a2f938773d
https://docs.google.com/forms/d/e/1FAIpQLSf2IPZ4-A4ZuT6_JkIrE1-Cs3-fzsHr_rGdwvUqevF47_dIMw/viewform
Couldn't save and upload a gif, but here is the code, was playing with animation. Not something to hang a hat on, but along the lines of trying to pixellate, to see how varied age is by teams:
#===============================================================================
2021-06-23 -- Rosrock Retreat
Dataviz challenge -- EURO 2020 data
Ilya Kashnitsky, [email protected]
#===============================================================================
Dataset is a detailed team squads data from Transfermarkt
https://www.transfermarkt.com/euro-2020/teilnehmer/pokalwettbewerb/EM20
For each country it looks like this
https://www.transfermarkt.com/england/startseite/verein/3299
library(tidyverse)
library(magrittr)
load the dataset
source("https://gist.githubusercontent.com/ikashnitsky/5f305b91aacd5ea61dbd64a2f938773d/raw/a3eb3d280946023cd66601de100482a36b144d6c/euro_2020_players.R")
check the dataset
euro_2020_players %>% print()
# consider
euro_2020_players %>% xray::distributions()
Have fun!
Link to submit your output
https://docs.google.com/forms/d/e/1FAIpQLSf2IPZ4-A4ZuT6_JkIrE1-Cs3-fzsHr_rGdwvUqevF47_dIMw/viewform
library(gganimate)
library(forcats)
p <- ggplot(euro_2020_players) +
geom_point(aes(x=fct_reorder(country, age), y=age), alpha=0.8) +
coord_flip() +
transition_states(no, transition_length = 3, state_length = 1)
p