Skip to content

Instantly share code, notes, and snippets.

library(sf)
library(ggplot2)
library(rjson)
library(dplyr)
# Source: https://rud.is/b/2018/10/10/geojson-version-of-cbc-quebec-ridings-hex-cartograms-with-example-usage-in-r/
geoJson <-
"https://gitlab.com/hrbrmstr/quebec-hex-ridings/-/raw/master/quebec-ridings.geojson"
carte <-
sf::st_read(geoJson, quiet = TRUE, stringsAsFactors = FALSE)
library(tmaptools)
library(sf)
library(tidyr)
library(stringr)
# Fonti:
# Basi geografiche ISTAT (da scaricare): https://www.istat.it/it/archivio/273443
# Liste candidati Ministero dell'Interno: https://dait.interno.gov.it/elezioni/trasparenza/elezioni-politiche-2022
# Estratte da onData: https://github.com/ondata/elezioni-politiche-2022/tree/main/liste
@vi-enne
vi-enne / camera18
Last active October 13, 2022 13:25
day
"0,944,10,1086"
"3,790,1,720,8,520"
"3,1552,4,478"
"3,2030"
"3,895,1,1135"
"3,1552,4,478"
"10,944,0,1086"
"3,1581,2,449"
"3,1552,4,478"
<!DOCTYPE html>
<head>
<title>Cambi gruppo Senato XVIII</title>
<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="//cloud.typography.com/7626174/696048/css/fonts.css" />
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
</head>
<meta charset="utf-8">
<style>
@vi-enne
vi-enne / senato18
Last active October 13, 2022 22:27
day
"3,1063,1,343,11,1,1,89,11,533"
"3,2029"
"3,2029"
"8,2029"
"3,2029"
"8,2029"
"8,2029"
"10,720,9,1309"
"6,2029"
<!DOCTYPE html>
<head>
<title>Cambi gruppo Camera XVIII</title>
<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="//cloud.typography.com/7626174/696048/css/fonts.css" />
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
</head>
<meta charset="utf-8">
<style>
@vi-enne
vi-enne / prova
Last active April 24, 2024 12:45
day
"8,924"
"6,924"
"3,924"
"0,924"
"0,924"
"0,924"
"6,142,10,782"
"0,198,10,726"
"0,924"
@vi-enne
vi-enne / README.md
Last active June 1, 2022 15:46
Donazioni vaccini anti Covid-19 dall'Italia verso Paesi terzi. I dati sono raccolti attraverso fonti ufficiali online e non sono esaustivi.