Binify for hexagon binning in Python

Posted to Software  |  Tags: ,  |  Nathan Yau

As an alternative to dot density maps, Binify by Kevin Schaul allows you to map with hexagon binning in Python.

Dot density maps are a straightforward way to visualize location data, but when you have too many locations, points can overlap and obscur clusters and trends. That’s where binning comes in. Generally speaking, the goal is to look at an area on a map and then count how many points are within that area. Do that across the entire area.

Grab the package on GitHub and go to town.

Favorites

Jobs Charted by State and Salary

Jobs and pay can vary a lot depending on where you live, based on 2013 data from the Bureau of Labor Statistics. Here’s an interactive to look.

Divorce and Occupation

Some jobs tend towards higher divorce rates. Some towards lower. Salary also probably plays a role.

The Most Unisex Names in US History

Moving on from the most trendy names in US history, let’s look at the most unisex ones. Some names have …

Life expectancy changes

The data goes back to 1960 and up to the most current estimates for 2009. Each line represents a country.