-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFastFoodOverview.Rpres
58 lines (44 loc) · 2.35 KB
/
FastFoodOverview.Rpres
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Overview
========================================================
author: Luke Shulman
date: 12/18/2016
autosize: true
Fast Food Data
========================================================
The USDA makes available a Food Environment Atlas containing almost 70 different variables on food access in US counties.
The data has also been linked to Socio Economic data from the US Census and other sources.
It can be found at [USDA Food Atlas](https://www.ers.usda.gov/data-products/food-environment-atlas/)
![](./data/fast_food_neon1.jpg)
Experiment
========================================================
There has been tremendous attention paid to communities that only have access to fast food restaurants.
- [Giving the Poor Easy Access to Healthy Food Doesn’t Mean They’ll Buy It](http://nyti.ms/1EnEVQN) *New York Times*
- [Zoning to Encourage Health Eating](https://www.cdc.gov/phlp/winnable/zoning_obesity.html) *CDC*
- [Toxic Food Environment](https://www.hsph.harvard.edu/obesity-prevention-source/obesity-causes/food-environment-and-obesity/) *Harvard Schol of Public Healht*
We will look at two variables "Poverty Rate", and "Median Household Income" to see if they have an effect on the number of Fast Food Restaurant penetration.
Prepping the data
========================================================
Data for this pitch has been included in the github repository. It is taken from a downloadable excel from the USDA.
<small>
```{r, eval=FALSE}
restaurantbase <- read.csv("./data/FoodAtlasRestaurantData.csv", stringsAsFactors = FALSE)
countysocial <- read.csv("./data/SocioEcoCounty.csv", stringsAsFactors = FALSE)
limitRestaurant <- restaurantbase[c("FIPS","State", "County","FSRPTH07", "PC_FFRSALES07")]
fullresult <- merge(limitRestaurant, countysocial, ID="FIPS" )
```
</small>
Results
========================================================
The full application is available as a shiny app. This plot shows the results for California and Washington state.
It shows no correlation.
<small>
```{r, eval=TRUE, echo=FALSE}
source("RestaurantDataPrep.R")
library(ggplot2)
d <- subset(fullresult, fullresult$State == c("CA", "WA"))
gg <- ggplot(d) +
geom_point(aes(x=d$FSRPTH07, y=d$POVRATE10, color = d$State)) +
labs(title = "CA and WA Counties Fast Food Per 100 vs. Poverty Rate", x = "Fass food per 1000 Residents", y = "Poverty Rate")
gg
```
</small>