What is gt? The gt package in R revolutionizes table creation by following the grammar of tables concept, offering unparalleled flexibility and customization options. Basic Example library(rvest) # For web scraping library(tidyverse) # For data manipulation library(gt) # For creating tables library(gtExtras) # For additional features in gt tables # URL of the page to... Continue Reading →
Creating Stunning Charts with Custom Themes and Logos
Are you tired of bland and generic charts? Want to spice up your data visualizations with custom themes and logos? Look no further! In this blog post, we'll walk you through the process of creating visually appealing charts using R, ggplot2, and some handy packages. Step 1: Creating a Custom Color Palette First things first,... Continue Reading →
How to deal with spatial data in R and ggplot (Shapefiles)
During my first project that involved manipulating big files containing spatial data, to be more precise shapefiles, I couldn't find a good tutorial that helped me to understand how to handle the structure of the data, it was overwhelming and frustrating, that is why I'm doing this tutorial explaining shapefiles and how to work with... Continue Reading →
An interactive app that shows different features of teams from several soccer leagues. Play with the Shiny App here. Check the code on GitHub here .
Shiny App for soccer teams performance
How to rate the performance of a soccer team? An application of Principal Components Analysis
How many time you have seen a team that is playing great is going through a rough streak of loosing matches and the head coach might be fired due bad results? When results are the only measure you have regarding a team performance is quite difficult to know if the team is improving or not and... Continue Reading →
Gender equity in sports; Is equal prize money at equivalent events fair?
Since the last century sports have taken a crucial place in our society, mostly because they turned out into a profitable business for people around them. But also, because sports have become a tool to shape society. A great example of this occur when the equity gender concept started to grow during the 70’s, at... Continue Reading →
Free Book – R for Data Science
A soccer question. How important is the ball possession?
Since the English conceived football (probably even before) different ideas and styles have been created around the game with mainly one purpose, being the best. Looking at the recent history of soccer there are two types of styles almost opposite between each other that became quite popular and successful, one is the Catenaccio, an Italian... Continue Reading →