Skip to content

Commit

Permalink
Add heatmaps as static (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
g4brielvs authored Jun 27, 2024
1 parent f18648c commit c574345
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 18 deletions.
54 changes: 36 additions & 18 deletions notebooks/conflict/conflict-in-niger.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"id": "8d2ca2d1",
"metadata": {
"collapsed": true,
"jupyter": {
"outputs_hidden": true
},
"tags": [
"remove-cell"
]
Expand Down Expand Up @@ -2749,6 +2752,27 @@
"update_figures({\"new\": 0})"
]
},
{
"cell_type": "markdown",
"id": "e136672e",
"metadata": {},
"source": [
"```{figure} ./images/conflicts-yearly.png\n",
"---\n",
"height: 300px\n",
"---\n",
"Yearly Data on Conflicts\n",
"```\n",
"\n",
"```{figure} ./images/fatalities-yearly.png\n",
"---\n",
"height: 300px\n",
"---\n",
"Yearly Data on Fatalities\n",
"```\n",
"\n"
]
},
{
"cell_type": "markdown",
"id": "fc2d2211",
Expand Down Expand Up @@ -2885,23 +2909,6 @@
"niger_acled_adm0 = get_acled_by_admin(niger_adm1, acled, columns=[\"country\"], freq=\"Y\")"
]
},
{
"cell_type": "markdown",
"id": "fd16071b",
"metadata": {},
"source": [
"```{note}\n",
"**Geographical overview of Niger**\n",
"\n",
"Niger is divided into seven regions (Agadez, Diffa, Zinder, Maradi, Tahoua, Tillabéri, and Dosso), each named after its capital. Additionally, there is Niamey, the national capital, which comprises a capital district.\n",
"\n",
"Using the 2020 census data, the map below shows that Niamey, the capital district, is the most densely populated region, with approximately 3,601 persons per square kilometer. Maradi and Dosso follow, with densities of 115 and 85 persons per square kilometer, respectively. Tahoua, Tillabéri, and Zinder have moderate population densities of 41, 40, and 32 persons per square kilometer, respectively. In contrast, Diffa and Agadez have very low population densities, with 5 and 1 person per square kilometer, respectively.\n",
"\n",
"![Map of Niger](../../notebooks/conflict/Map_Niger.png)\n",
"*Population density of the 7 regions and capital district in Niger*\n",
"```"
]
},
{
"cell_type": "code",
"execution_count": 155,
Expand Down Expand Up @@ -3061,6 +3068,17 @@
"source": [
"### 5). Geospatial changes in conflicts (2022 - 2023)\n",
"\n",
"```{note}\n",
"**Geographical overview of Niger**\n",
"\n",
"Niger is divided into seven regions (Agadez, Diffa, Zinder, Maradi, Tahoua, Tillabéri, and Dosso), each named after its capital. Additionally, there is Niamey, the national capital, which comprises a capital district.\n",
"\n",
"Using the 2020 census data, the map below shows that Niamey, the capital district, is the most densely populated region, with approximately 3,601 persons per square kilometer. Maradi and Dosso follow, with densities of 115 and 85 persons per square kilometer, respectively. Tahoua, Tillabéri, and Zinder have moderate population densities of 41, 40, and 32 persons per square kilometer, respectively. In contrast, Diffa and Agadez have very low population densities, with 5 and 1 person per square kilometer, respectively.\n",
"\n",
"![Map of Niger](../../notebooks/conflict/Map_Niger.png)\n",
"*Population density of the 7 regions and capital district in Niger*\n",
"```\n",
"\n",
"- Cumulatively, total conflict events dropped by at least $100$ between 2022 and 2023, while a spike in the number of recorded fatalities was observed.\n",
"\n",
"- The ***Tillabéri*** region, followed by the ***Diffa*** region, appears to be the most impacted across the years. An uptrend is observed for ***Tillabéri***, which recorded the significantly highest average conflict index (CI) of $40.59$ in 2023 (the year of the coup).\n",
Expand Down Expand Up @@ -4090,7 +4108,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.3"
"version": "3.12.4"
}
},
"nbformat": 4,
Expand Down
Binary file added notebooks/conflict/images/conflicts-yearly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/conflict/images/fatalities-yearly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c574345

Please sign in to comment.