Walking Through Data: Hog and Pig Farms

Words
586
Reading
3 min
9y
Listen to this post
~4 min

In examining data, we can see telling relationships about agriculture. Here these relationships – and ways of visualizing them – are discussed.

Data by farm size


Yesterday I wrote a post about pork agriculture in the United States. In this post, I made a graph from the following data, which is from the 2012 US Census of Agriculture:

Hogs/Pigs on FarmFarmsHogs/Pigs
1 - 2441,688244,250
25 - 493,435116,808
50 - 992,161146,967
100 - 1991,469201,460
200 - 4992,115683,977
500 - 9991,9771,384,921
1000 - 19992,6773,662,168
2000 - 49994,71814,867,199
5000+300644,719,035

This data can be used to make a bar chart showing how many hogs and pigs are on large farms. Below is the graph I used in yesterday's post.

livestock

This graph is informative, but doesn't reflect all the interesting things in the above data. For instance, seeing this graph alone might lead you to an assumption that most farms are factory farms, but that's not true. Let's take a look at a graph of the number of farms by farm size.

farms

Trends can help explain perceptual disparity between facts and anecdotes.


This trend is pretty surprising, but also may explain discrepancies that I have personally encountered. While we know that 96% of hogs and pigs are on factory farms, it can be hard to convince people that this is true. On several occasions when I have discussed pork agriculture with people, it is brought up that they know a friend or a family member who has worked on a farm where things aren't nearly as bad as "the other farms."

Knowing that most farms are small while most hogs and pigs are on factory farms provides some explanation for this: while you are more likely to have seen or heard about a small farm, the pork on your plate is extremely likely to have come from a factory farm. Notably, the disparity between farms people have encountered and the prevalence of factory farms is exacerbated when you consider that people who have the luxury of leisurely discussing livestock populations are less likely to be around factory farms, since hog factory farms are about nine times more likely to exist in areas affected by poverty.

Combining graphs


It would be great to show all of this information in one simple graph, but to do so there should be a common metric that works to both numbers. While the number of total farms is in the ten thousands and the number of total pigs and hogs is in the ten millions, we can examine both of these quantities by farm size as a percentage of the total. Using the above data, we can make this conversion.

Hogs/Pigs on FarmPercentage of total farmsPercentage of total Hogs/Pigs
1 - 2465.9140500.3699256
25 - 495.4311740.1769100
50 - 993.4168170.2225869
100 - 1992.3226770.3051186
200 - 4993.3440851.0359084
500 - 9993.1258892.0975139
1000 - 19994.2326795.5464884
2000 - 49997.45976022.5169210
5000+4.75287067.7286271

In order to graph this data, a bar plot with two variables does the trick.

together

This graph illustrates disparity farms and livestock that helps to explain the anecdotes I personally have encountered. The drawback of this representation is that specific numbers are not available, and a viewer would not be able to tell that there are about 42 thousand farms with 1 - 24 pigs and hogs, or that 45 million pigs and hogs are on farms with over 5000 of the same species.

I hope this walkthrough has been informative and interesting! All code used to generate these charts is on github.

Until next time

follow_somethingburger.gif

This post is CC BY 4.0

Walking Through Data: Hog and Pig Farms | Ecency