What Qualifies as Middle-Income in Each State
What qualifies as lower, middle, and upper income? There are various definitions, but the Pew Research Center defined middle-income as two-thirds to double the median. Upper is then everything that is greater than double the median, and lower is everything that is less than two-thirds the median.
Here’s what you get when you apply this definition to each state and adjust for household size.
Bars represent a range for each state, sorted by median and adjusted for household size.
This is based on data from the 2017 five-year American Community Survey. I was surprised to see so much variation in rankings when you move between household sizes.
For example, California is towards the top for smaller households, but then shifts towards the middle once you get to five-person households. Montana, on the other hand, shifts in the opposite direction. Makes me wonder how these differences relate to family types.
With the thresholds, we can estimate the overall breakdowns.
Learn to Visualize Data See All →
How to Make a Mosaic Plot in R
Also known as a Marimekko diagram, the mosaic plot lets you compare multiple qualitative variables at once. They can be useful, sometimes.
How to Make a Contour Map
Filled contour plots are useful for looking at density across two dimensions and are often used to visualize geographic data. It’s straightforward to make them in R — once you get your data in the right format, that is.