Shifting Incomes for American Jobs
With some occupations, people make more annual income than others. Obvious. But we typically see figures in terms of means and medians when in reality, the difference between the person who makes the most and the one who makes the least can be significant.
The chart below shows the spread for major occupation groups, for several decades. Imagine you randomly select 50 people from each group, and this is what their annual income probably looks like.
The data for 2000 and earlier comes from the decennial census, and the data for 2010 and 2014 come from the American Community Survey.
As you progress through time, you’ll notice the distributions of income spread out more. This is especially obvious when you switch between 1960 and 2014. With the exception of lower paying jobs in areas such as food preparation and cleaning, it looks like there’s more opportunity to earn a higher salary (among those who have jobs at least).
That said, even if a job typically pays well, there are still people at the lower end of the bracket.
Here’s how to make a chart similar to this one.
- This is total personal income for individuals, as opposed to salary from an employer. I didn’t want to minus out the self-employed, but consequently the dollar values include things like welfare and retirement income.
- The occupation groups are broad. See here for detailed listings.
- I adjusted for inflation and binned by $5,000 increments, but it’s probably worth noting that some of the binning you see is from rounding.
- I downloaded the data from IPUMS, which makes Census microdata much easier to grab.
- I’m not fully sold on using a force-directed graph instead of histograms to show distributions, but I do like that it gets you closer to the individuals that the data represents.
- I analyzed and prepared the data in R and made the final visualization with d3.js.
Learn to Visualize Data See All →
How to Draw and Use Polygons in R
R provides functions for basic shapes, but you can also draw your own for maximum fun.
Drawing Circles and Ellipses in R
Whether you use circles as visual encodings or as a way to highlight areas of a plot, there are functions at your disposal.
An Easy Way to Make a Treemap
If your data is a hierarchy, a treemap is a good way to show all the values at once and keep the structure in the visual. This is a quick way to make a treemap in R.