# stevenlahoud/analyse-electorale-paris architecture

> Architecture diagram of the GitHub repository stevenlahoud/analyse-electorale-paris, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/stevenlahoud/analyse-electorale-paris
- Repository: https://github.com/stevenlahoud/analyse-electorale-paris

## Overview

This repository is a Quarto report presenting a polling-station-level analysis of Paris elections. The documented workflow is to render the report using official election results and polling-station boundaries, then examine multivariate, clustering, regression, and mapping results. The file tree suggests separate download and data-loading documents, but their contents and connections are not shown, so those relationships are omitted. Method-to-data links reflect the README’s description, not inspected source code.

Main entry points: [`report.qmd`](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd) (Quarto report)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Election inputs"]
  node_official_data[("Paris open data")]
  node_download["Data download<br/>[_download.qmd]"]
  node_load_data["Data loading<br/>[_load_data.qmd]"]
end

subgraph group_analysis["Analysis and reporting"]
  node_pca["PCA<br/>[report.qmd]"]
  node_cca["CCA<br/>[report.qmd]"]
  node_clustering["K-means<br/>[report.qmd]"]
  node_regression["Linear regression<br/>[report.qmd]"]
  node_maps["Choropleth maps<br/>[report.qmd]"]
  node_report["Quarto report<br/>[report.qmd]"]
end

node_analyst(("Analyst"))

node_analyst -->|"renders"| node_report
node_official_data -->|"analyzes results"| node_pca
node_official_data -->|"compares elections"| node_cca
node_official_data -->|"clusters stations"| node_clustering
node_official_data -->|"models results"| node_regression
node_official_data -->|"maps results"| node_maps
node_pca -->|"reports findings"| node_report
node_cca -->|"reports findings"| node_report
node_clustering -->|"reports findings"| node_report
node_regression -->|"reports findings"| node_report
node_maps -->|"presents maps"| node_report

click node_download "https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/_download.qmd"
click node_load_data "https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/_load_data.qmd"
click node_pca "https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd"
click node_cca "https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd"
click node_clustering "https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd"
click node_regression "https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd"
click node_maps "https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd"
click node_report "https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_official_data,node_download,node_load_data toneBlue
class node_pca,node_cca,node_clustering,node_regression,node_maps,node_report toneAmber
class node_analyst toneIndigo
```

## Components

### Election inputs

- **Paris open data**
- [Data download](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/_download.qmd): `_download.qmd`
- [Data loading](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/_load_data.qmd): `_load_data.qmd`

### Analysis and reporting

- [PCA](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd): `report.qmd`
- [CCA](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd): `report.qmd`
- [K-means](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd): `report.qmd`
- [Linear regression](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd): `report.qmd`
- [Choropleth maps](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd): `report.qmd`
- [Quarto report](https://github.com/stevenlahoud/analyse-electorale-paris/blob/main/report.qmd): `report.qmd`

### Other components

- **Analyst**

## Connections

- Analyst → Quarto report: renders (evidence: `README.md`)
- Paris open data → PCA: analyzes results (evidence: `README.md`)
- Paris open data → CCA: compares elections (evidence: `README.md`)
- Paris open data → K-means: clusters stations (evidence: `README.md`)
- Paris open data → Linear regression: models results (evidence: `README.md`)
- Paris open data → Choropleth maps: maps results (evidence: `README.md`)
- PCA → Quarto report: reports findings (evidence: `README.md`)
- CCA → Quarto report: reports findings (evidence: `README.md`)
- K-means → Quarto report: reports findings (evidence: `README.md`)
- Linear regression → Quarto report: reports findings (evidence: `README.md`)
- Choropleth maps → Quarto report: presents maps (evidence: `README.md`)
