Walking Through Data: Hog and Pig Farms

in #food6 years ago (edited)

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

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.


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.


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

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


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


This post is CC BY 4.0


Hi! Great post. Im a small farmer in Canada (sheep, not pigs ), and youre absolutely right about how many people know a farmer (and see things are done humanely on that farm), but likely still eat factory farmed meat. The very best solution that consumers can effect to take the power away from factory farming and their disregard for animal welfare is to shop direct from the farm! You might pay a bit more because those small farmers need to have an income, and their profit margins work way differently than a huge factory farm, but by doing so, you have helped a family put their kids in music lessons. You've sourced your meat from an animal who spent its life in the sunshine, with a great deal more freedom to move, play, and enjoy life, that was likely not medicated on a whim, and who only ever had one REALLY bad day, and it was over quick.

The next best solution is to start farming yourself, if at all possible. This might be as simple as a pot of tomatoes grown on your apartment balcony, as unorthodox as tilling up your backyard and planting a huge garden with a few chickens to scratch between the rows, providibg fertilizer(manure), pest control, and eggs and meat from a completely verifiable source(city bylaws permitting you keeping chickens of course), or as crazy as buying a ramshackle plot of land in the country and raising crops and/or livestock to sell to all your friends who still live in the city!

Thank you so much for this fantastic comment, @tanglebranch! I am thrilled to hear from a small farmer who can speak to data, and advocate so well for buying directly from farms. These are great suggestions, and I look forward to your posts on this site!

Really nice (valuable) walk through of the ways in which data can (should) be represented. You are definitely living up to your name @somethingburger! (And I think we know what's in that burger, eh?)

Congratulations @somethingburger! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of posts published

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Coin Marketplace

STEEM 0.17
TRX 0.08
JST 0.023
BTC 26576.78
ETH 1594.56
USDT 1.00
SBD 2.18