Skip to content

Instantly share code, notes, and snippets.

View IvoVillanueva's full-sized avatar

Iván Villanueva Sabalete IvoVillanueva

View GitHub Profile
@IvoVillanueva
IvoVillanueva / licencias
Created July 19, 2022 12:21
Gráfica licencias ACB temporada regular 2021-22 vs clasificación de equipos
# librerias---------
library(tidyverse)
library(rvest)
library(gt)
library(gtExtras)
# logos, colores, y nombres-------
import pandas as pd
import requests
headers = {
'Accept': 'application/json, text/plain, */*',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'es-ES,es;q=0.9,en;q=0.8',
'Connection': 'keep-alive',
# Librerias ----------------------------------------------------------
library(tidyverse)
library(nbastatR)
library(here)
library(rcartocolor)
library(scales)
library(httr) #para scrapear la tabla de emparejamientos
library(jsonlite) #para reestructurar los datos del Json extraido
# librerias ---------------------------------------------------------------
library(tidyverse)
library(rvest)
library(janitor)
library(ggchicklet)
library(prismatic)
library(ggtext)
library(fishualize)
@IvoVillanueva
IvoVillanueva / gist:3e083f7fcb5b13a47227382c72f2d146
Created October 16, 2021 19:04
gt_Table con sparklines y plot_win_loss
# librerias ---------------------------------------------------------------
library(tidyverse)
library(rvest)
library(janitor)
library(gt)
library(gtExtras)