library(reactable)
library(reactablefmtr)
library(tidyverse)
Data visualisation is a key aspect of communicating our story or message behind the data we have. While it is common to visualise data using a myriad of graphs, tables may be more appropriate or effective at times to present numerous data information. In addition, such mode of data visualisation can be even more effective by allowing readers to interact with the table. This blog post documents my attempt to visualise data on the FIFA World Cup 22 participating teams with interactive tables using R programming language.
Required Libraries
There are plenty of different packages available in R to create interactive tables. In this blog post, the {reactable} package was used to first build the interactive table and the {reactablefmtr} package was utilised for styling purpose. Besides that, {tidyverse} was used mainly to help with data wrangling.
Data
This post used a total of three datasets to show information of all FIFA World Cup 22’s participating teams’ historical appearances in the knockout stages of previous editions of the competition:
Results of all World Cup matches played in history (Source: Kaggle)
Participating teams in FIFA World Cup 22 and their respective FIFA rankings and points
Country flag dataset with URL addresses of country flag images