<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>sf | Dhafer Malouche</title><link>https://dhafermalouche.net/tag/sf/</link><atom:link href="https://dhafermalouche.net/tag/sf/index.xml" rel="self" type="application/rss+xml"/><description>sf</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>Dhafer Malouche © 2026</copyright><lastBuildDate>Tue, 02 Jun 2026 00:00:00 +0000</lastBuildDate><image><url>https://dhafermalouche.net/media/icon_hu294da7f24af66942b94b8e240e33fe59_2153342_512x512_fill_lanczos_center_3.png</url><title>sf</title><link>https://dhafermalouche.net/tag/sf/</link></image><item><title>Municipales 2026 — French Municipal Elections Dashboard</title><link>https://dhafermalouche.net/apps/municipales2026/</link><pubDate>Tue, 02 Jun 2026 00:00:00 +0000</pubDate><guid>https://dhafermalouche.net/apps/municipales2026/</guid><description>&lt;p>An interactive dashboard that visualises the official results of the &lt;strong>2026 French municipal elections&lt;/strong> (first round on 15 March and second round on 22 March 2026) across the 96 departments of metropolitan France. It belongs to the same family of browser-based teaching and outreach tools as the Stat* apps, but turns the focus to applied electoral statistics and geographic data.&lt;/p>
&lt;h2 id="what-the-dashboard-shows">What the dashboard shows&lt;/h2>
&lt;p>The data come from the &lt;strong>Ministry of the Interior&lt;/strong>, published on &lt;a href="https://www.data.gouv.fr" target="_blank" rel="noopener">data.gouv.fr&lt;/a> at the polling-station level and aggregated up to the department. For each round the app lets the visitor:&lt;/p>
&lt;ul>
&lt;li>read a &lt;strong>choropleth map&lt;/strong> of France, coloured by the leading political bloc or by a selected party&amp;rsquo;s vote share;&lt;/li>
&lt;li>switch between &lt;strong>political blocs&lt;/strong> (left, centre, right, far-right) and individual &lt;strong>parties&lt;/strong>, with national summaries updating in step;&lt;/li>
&lt;li>inspect national indicators — registered voters (&lt;em>inscrits&lt;/em>), turnout (&lt;em>participation&lt;/em>), valid votes (&lt;em>exprimés&lt;/em>), and each party&amp;rsquo;s share of the valid vote;&lt;/li>
&lt;li>click any &lt;strong>department&lt;/strong> to open its detailed breakdown, including vote counts, vote share, the number of territories led, and the median rank of each bloc.&lt;/li>
&lt;/ul>
&lt;p>A small glossary panel defines the core electoral quantities — &lt;em>inscrits&lt;/em>, &lt;em>votants&lt;/em>, &lt;em>exprimés&lt;/em>, participation, and share of the valid vote — so the dashboard doubles as a teaching aid on how electoral indicators are constructed.&lt;/p>
&lt;h2 id="technical-notes">Technical notes&lt;/h2>
&lt;p>The data pipeline is written in &lt;strong>R&lt;/strong> with &lt;strong>tidyverse&lt;/strong> and &lt;strong>sf&lt;/strong> for cleaning, aggregation, and the geometry of the departmental boundaries. The front end is a static &lt;strong>HTML / CSS / JavaScript&lt;/strong> application using &lt;strong>Leaflet.js&lt;/strong> for the interactive cartography; it is deployed continuously on &lt;strong>Netlify&lt;/strong> and runs entirely client-side once the data layer has loaded.&lt;/p></description></item></channel></rss>