Emergency room data in R

Posted to Data Sources  |  Tags: , ,  |  Nathan Yau

For my graphic on emergency room visits over time and the other on things that get stuck, I used data from the National Electronic Injury Surveillance System, which is maintained by the Consumer Product Safety Commission.

You can download the data, grouped annually, as Excel files and then do some munging to get the data in order. It’s not a huge burden, but it’s not that fun either. Or, if you want to skip straight to the good stuff, you can use the neiss R package by Hadley Wickham to import the data in R.

I’d go with the latter.

Favorites

Where Bars Outnumber Grocery Stores

A closer look at the age old question of where there are more bars than grocery stores, and vice versa.

Life expectancy changes

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

Causes of Death

There are many ways to die. Cancer. Infection. Mental. External. This is how different groups of people died over the past 10 years, visualized by age.

Visualizing the Uncertainty in Data

Data is an abstraction, and it’s impossible to encapsulate everything it represents in real life. So there is uncertainty. Here are ways to visualize the uncertainty.