Chapter 6 Activity
Looking at the EJ Screen website, wastewater discharge is an EJ factor in many Southern California regions.
We can dive into the data and look at the content of the wastewater in two different rural counties: Riverside and Imperial
We find that the chemical composition is very different! These are also counties with large amounts of agricultural run-off, but these are not accounted for in this database. The nitrate wastewater runoff in Imperial county is from the US Navy.
library(ggplot2)
<- read.csv(file = ‘TRI_table_CA2.csv’)
data = “IMPERIAL”
county_name = data[data$COUNTY_NAME == county_name,]
county ## What do the columns mean?
# TOTAL_PRODUCTION_RELATED_WASTE. = sum of all reports
# TOTAL_PRODUCTION_RELATED_WASTE..1 = average of all reports
# TOTAL_PRODUCTION_RELATED_WASTE..2 = count of reports
# county$TOTAL_PRODUCTION_RELATED_WASTE..5 = std of all reports
# county$TOTAL_PRODUCTION_RELATED_WASTE..6 = variance of all reports
## Plot total by facility
= aggregate(x = county$TOTAL_PRODUCTION_RELATED_WASTE., # Specify data column
county1 by = list(county$FACILITY_NAME), # Specify group indicator
FUN = sum)
<- county1[order(county1$x),]
county1 <-ggplot(data=county1, aes(x=Group.1, y=x)) +
pgeom_bar(stat = ‘identity’)
+ theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1))
p ## Plot total by chemical
= aggregate(x = county$TOTAL_PRODUCTION_RELATED_WASTE., # Specify data column
chemical by = list(county$CAS_CHEM_NAME), # Specify group indicator
FUN = sum)
<-ggplot(data=chemical, aes(x=Group.1, y=x)) +
pgeom_bar(stat = ‘identity’)
+ theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1))
p ## Plot chemicals that are released into the water
<- county[county$WATER_TOTAL_RELEASE > 0,]
county_water = aggregate(x = county_water$WATER_TOTAL_RELEASE, # Specify data column
chemical by = list(county_water$CAS_CHEM_NAME), # Specify group indicator
FUN = sum)
<-ggplot(data=chemical, aes(x=Group.1, y=x)) +
pgeom_bar(stat = ‘identity’)
+ theme(axis.text.x = element_text(angle = 90, vjust = 0.5, hjust=1)) p