Wenyan Deng

Ph.D. Candidate

Massachusetts Institute of Technology

May 1, 2019

I recently found a county-level dataset of Cultural Revolution deaths by Professor Andrew G. Walder at Stanford University. I thought some geographical data visualization of the data would be cool for research purposes, and here's the result, with deaths normalized by county population.

January 17, 2018

Continuing from the example from last time, here is how to write geo-dataframes as shapefiles.

January 14, 2018

In an earlier post, I explained how to make choropleth and scatter maps with Folium. In this post, I explain another way of setting up the color scale. The example this time is with armed groups in South and Southeast Asia, together with Polity Score data.

August 24, 2017

This post shows how to use Matplotlib to create a static map that overlays major road networks, types of police stations attacks, and a choropleth map of Sri Lanka Freedom Party's (SLFP) vote share in the 1970 parliamentary election. This is a static version of the interactive map introduced last week.

August 18, 2017

This post shows how to use Folium to produce an interactive pop-up map that overlays a choropleth map (polygons) with a scatter map (points) and a line (linestrings) map. We will overlay a dataset of major road networks with our old dataset on police station attacks and Sri Lanka Freedom Party's (SLFP) vote share in the 1970 parliamentary election.

August 3, 2017

This post shows how to use Plotly and Mapbox to produce a scatter map using a sample of Sri Lankan police station data to map which police stations were attacked by rebel groups in the 1971 revolt.

July 26, 2017

This post introduces how to use open source softwares and resources that allow researchers to merge administrative divisions into polling divisions. This is useful when there are no ready-made open source shapefiles and researchers need to create their own shapefiles based on existing ones.

July 22, 2017

This post produces an interactive Gapminder-like plot with Plotly and Pandas. I demonstrate how to make a bubble plot that show the number of registered voters, Sri Lankan Army officer death count, and voter turnout.

July 21, 2017

This post goes over how to do interactive maps with pop-up function using Folium, continuing with the example of Sri Lankan Army (SLA) officer deaths shown in the last blog post.

July 20, 2017

This blog post goes over how to do spatial join and plot a choropleth map with GeoPandas using an example of Sri Lankan Army (SLA) officer deaths between 1981 and 1999.