This repository contains material for the website: https://blog.insileco.io/fr-presidential-election-2022/ mapping votes cast and abstention for the French presidential election of 2022 at the department level (metropolis and overseas departments).
The website was built with the software R and
the packages
leaflet
,
highcharter
,
htmltools
,
htmlwidgets
,
leafem
, and
leafpop
.
All original data are stored in
data/raw-data
and are organized as follow:
Presidentielle_2022_Resultats_Tour_1_c.xls
: dataset released by the French Government with results of the first round of voting at the Department level (source).Presidentielle_2022_Resultats_Tour_2_c.xls
: dataset released by the French Government with results of the second round of voting at the Department level (source).candidates_info_2022.csv
: table with the name of candidates and their associated colorsshp-FRA_DOM-composite.rds
: composite spatial layer (sp
polygons) of France and overseas departments. Coordinates of overseas departments have been altered to be positioned at the bottom of France. This layer is derived from the version 2.8 of the Global Administrative Areas (GADM).shp-FRA_DOM-composite_lowres.rds
: same at the previous layer but with simplified geometries (low resolution of a better display).
- Clone the repository
- Run the
make.R
- Open the
index.html
in a web browser
N.B All dependencies will be automatically installed using the R package
renv
.