Publications by R on kieranhealy.org
Animating U.S. Population Distributions
With the 2020 U.S. Census in motion already, I’ve been looking at various pieces of data from the Census Bureau. I decided I wanted to draw some population pyramids for the U.S. over as long a time series as I could. What’s needed for that are tables for, say, as many years as possible that show the number of males and females alive at every ...
6087 sym R (9636 sym/24 pcs) 2 img 12 tbl
U.S. Census Counts Data
As promised previously, I packaged up the U.S. Census data that I pulled together to make the population density and pyramid animations. The package is called uscenpops and it’s available to install via GitHub or with install.packages() if you set up drat first. The instructions are on the package homepage. A small multiple plot of selected po...
1644 sym R (3625 sym/8 pcs) 2 img 4 tbl
Covid 19 Tracking
Get Your Epidemiology from Epidemiologists The COVID-19 pandemic continues to rage. I’m strongly committed to what should be the uncontroversial view that we should listen to the recommendations of those institutions and individuals with strong expertise in the relevant fields of Public Health, Epidemiology, Disease Control, and Infection Model...
9171 sym R (13503 sym/26 pcs) 4 img 13 tbl
A COVID Small Multiple
John Burn-Murdoch has been doing very good work at the Financial Times producing various visualizations of the progress of COVID-19. One of his recent images is a small-multiple plot of cases by country, showing the trajectory of the outbreak for a large number of countries, with a the background of each small-multiple panel also showing (in grey...
2923 sym R (5561 sym/8 pcs) 2 img 4 tbl
Covdata Package
The covdata logo Partly because it grew out of a few code-throughs I was doing, but mostly as a classroom exercise, I pulled together a small data package for R called covdata, available at https://kjhealy.github.io/covdata/. It contains COVID-19 data from three sources: National level data from the European Centers for Disease Control. State-l...
1468 sym 2 img
Upset Plots
The other day Nature reported some preliminary results from a study of COVID-19 symptoms that’s being carried out via a phone app. The report noted that loss of sense of smell (or “Anosmia”) seemed to be a common symptom. The report was accompanied by this graphic, showing the co-occurrence of symptoms in about 1,700 self-reports via the ap...
5737 sym R (5775 sym/8 pcs) 4 img 4 tbl
Apple’s COVID Mobility Data
Apple recently released a batch of mobility data in connection with the COVID-19 pandemic. The data is aggregated from requests for directions in Apple Maps and is provided at the level of whole countries and also for a selection of large cities around the world. I folded the dataset into the covdata package for R that I’ve been updating, as I ...
9270 sym R (7778 sym/12 pcs) 10 img 6 tbl
New Orleans and Normalization
My post about Apple’s mobility data from a few days ago has been doing the rounds. (People have been very kind.) Unsurprisingly, one of the most thoughtful responses came from Dr. Drang, who wrote up a great discussion about the importance of choosing the right baseline if you’re going to be indexing change with respect to some time. His disc...
4248 sym 6 img
Get Apple’s Mobility Data
I’ve been maintaining covdata, an R package with a variety of COVID-related datasets in it. That means I’ve been pulling down updated files from various sources every couple of days. Most of these files are at static locations. While their internal structure may change occasionally, and maybe they’ve moved once or twice at most since I star...
2105 sym R (6116 sym/8 pcs) 4 tbl
Some Data Packages
If you’re teaching statistics, data analysis, or data visualization with R this semester, especially in the social sciences, I’ve pulled together various bits of data into packages that I use in my own teaching. You might find them useful once you’re sick of Gapminder. They cover a variety of topics and range from single tables of data to w...
2702 sym 14 img