Categories ▸ Visualization

Us Monthly Births

Yesterday I came across Aaron Penne’s collection of very nice data visualizations, one of which was of monthly births in the United States since 1933. He made a tiled heatmap of the data, taking care when calculating the average rate to correct for the varying number of days in different months. Aaron works in Python, so I took the opportunity to play around with the data and redo the plots in R.

Filling Ordered Facets From the Bottom Row

On Twitter the other day, Philip Cohen put up some data on changes in Bachelor’s degrees awarded between 1995 and 2015. The data come from the National Center for Education Statistics. It seemed like a good candidate for drawing as a figure, so I had a go at it: Changes in the number of Bachelor’s degrees awarded over the past twenty years. Afterwards, I was messing around with the data and wanted to draw some time-series plots for the various subject areas the NCES tracks.

Dataviz Signup

Data Visualization: A Practical Introduction will be published later this year by Princeton University Press. You can read a near-complete draft of the book at socviz.co. If you would like to receive one (1) email when the book is available for pre-order, please fill out this very short form. The goal of the book is to introduce readers to the principles and practice of data visualization in a humane, reproducible, and up-to-date way.

Assault Deaths to 2015

Every couple of years—usually after one of the inevitable mass shootings—I find myself updating this graph. The originals were done in 2012. You can read America is a Violent Country, and Assault Deaths Within the United States to see those. This morning I pulled the latest figures from the OECD Health Status database. The method and scope are the same as before. Here is the main figure, showing assault death rates for the US and 23 other OECD countries.

A Data Visualization Work in Progress

Data Visualization for Social Science: A Practical Introduction with R and ggplot2 I’m writing a book on data visualization, provisionally titled Data Visualization for Social Science: A practical introduction with R and ggplot2. As part of that process, largely because I’ve benefited so much myself from the availability of open and widely shared tools for software development, I’m making the draft version of the book available as its own website.

A Little More Nuance

“Fuck Nuance” has just been published in Sociological Theory. The pace of academic publishing being what it is, the paper has been out in the world for a while in draft form, but it’s nice to see the canonical version appear. The issue also contains a symposium on theory in Sociology, with contributions from Ivan Ermakoff, Ashley Mears, and Max Besbris and Shamus Khan. I’ve described the circumstances of the paper’s conception before.

Saying no to Pie

I saw this pie chart via Beth Popp Berman on Twitter yesterday: Pie charts of student debts by percent of all borrowers and percent of all debt. As you probably know, the perceptual qualities of pie charts are not great. In a single pie chart, it is usually harder than it should be to estimate and compare the values shown, especially when there are more than a few wedges and when there are a number of wedges reasonably close in size.

CBO Estimates for the AHCA

The Congressional Budget Office released its cost estimate report for the American Health Care Act yesterday. There are a few tables at the back summarizing the various budgetary and coverage effects of the proposed law. Of these, Table 4 is pretty interesting. The CBO “projected the average national premiums for a 21-year-old in the nongroup health insurance market in 2026 both under current law and under the AHCA. On the basis of those amounts, CBO calculated premiums for a 40-year-old and a 64-year-old, assuming that the person lives in a state that uses the federal default age-rating methodology”.

Flipped Counties in the 2016 Election

I was playing with some county-level data from the U.S. general election, partly out of a spirit of honest inquiry and partly out of a feeling of morbid curiosity. Because I had some county-level census data to hand, I took a look at the results using some extremely basic demographic information—the two variables that structure America’s ur-choropleths, namely population density and percent black. I focused on the counties that flipped from their vote in the 2012 general election.

Opiate-Related Deaths in the US, 1999-2014

Yesterday I had a conversation on Twitter with Josh Zumbrun that followed on from this tweet: This is one of the most horrifying graphics I've ever seen:https://t.co/wM0VJZn0Wg pic.twitter.com/qaUaNFtRPl — Josh Zumbrun (@JoshZumbrun) September 28, 2016 The striking maps he linked to tracked the rise in deaths due to drug-related overdoses over the past 15 years, caused in large part to the surge in use of heroin and synthetic opiates. The details are in the WSJ report on the problem.