Skip to content

Commit

Permalink
Converting the total pesticide application figure to kg
Browse files Browse the repository at this point in the history
  • Loading branch information
mountaindboz committed Oct 28, 2024
1 parent 78fc392 commit 3879e36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified manuscript_contam/results/figures/pesticide_use_reg_yr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions manuscript_contam/src/pesticide_use_figure.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ df_pest_use <- readRDS(here("manuscript_contam/data/processed/pesticide_use_dail
# Calculate monthly totals for each Region and Pesticide Class and prepare for figure
df_pest_use_c <- df_pest_use %>%
summarize(
TotalApplication = sum(TotalApplication),
TotalApplication = sum(TotalApplication) / 2.205,
.by = c(Region, Month, Year, PesticideClass)
) %>%
mutate(PesticideClass = factor(PesticideClass, levels = c("Rice", "Pyrethroid", "Other")))
Expand All @@ -36,7 +36,7 @@ plt_pest_use <- df_pest_use_c %>%
end = 0.8
) +
scale_y_continuous(
name = "Total Application (lbs)",
name = "Total Application (kg)",
labels = label_comma()
) +
theme_bw() +
Expand Down

0 comments on commit 3879e36

Please sign in to comment.