forked from ldecicco-USGS/passive_tox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanuscript_figures.Rmd
104 lines (80 loc) · 4.17 KB
/
manuscript_figures.Rmd
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
output:
pdf_document
editor_options:
chunk_output_type: console
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE,
message = FALSE,
warning = FALSE,
fig.width = 7,
fig.height = 9)
library(tidyverse)
library(toxEval)
library(ggpmisc)
library(ggpubr)
library(cowplot)
options(tinytex.verbose = TRUE,
dplyr.summarise.inform = FALSE)
source(file = "read_chemicalSummary.R")
source(file = "R/analyze/get_sites_ready.R")
site_info <- prep_site_list(tox_list$chem_site)
cas_final <- readRDS(file.path(Sys.getenv("PASSIVE_PATH"), "data","data_for_git_repo","clean",
"cas_df.rds"))
```
```{r fig1, fig.height=7}
knitr::include_graphics(path = file.path(Sys.getenv("PASSIVE_PATH"),
"Figures","Polished figures",
"GLRI_all_basin_LC_viewing_FY19_Mod3.pdf"))
```
Figure 1: Map of sample sites and associated land cover. Identification of site codes are presented in SI Table 1.
```{r fig2, fig.width=9, fig.height=11}
source(file = "R/report/combo_plot2.R")
source(file = "create_triple_fig.R")
source(file = "quintuple_plot.R")
plot_out <- quad_fun(path_to_data, tox_list)
plot_out
```
Figure 2: Exposure activity ratios (EARs) using ToxCast endpoints for screening of potential pathway-based bioactivity from detected chemicals (A), concentrations of detected chemicals that are represented in ToxCast (B), and concentrations of detected chemicals that are not represented in ToxCast (C) from analysis of passive samplers deployed in 69 sites within XX tributaries of the Great Lakes, 2010-2014. Compounds are grouped by chemical class and ordered by largest to smallest median EAR. Boxplots represent only sites where chemicals were detected. Compounds that were not detected are not included. [Sites, number of sampling locations with detections of each chemical. Boxes, 25th to 75th percentiles; dark line, median; whiskers, data within 1.5 x the interquartile range (IQR); circles, values outside 1.5 x the IQR.]
```{r fig3}
source(file = "R/report/stack_plots.R")
source(file = "R/report/combo_plot2.R")
source(file = "R/analyze/table_chem_class_Land_use_correlation.R")
lakes_ordered <- c("Lake Superior",
"Lake Michigan",
"Lake Huron",
"Lake Erie",
"Lake Ontario")
df <- Chem_Class_correlation_table()
df <- tibble(x = 0.92,
y = 0.92,
site_grouping = factor("Lake Superior", levels = lakes_ordered),
tb = list(df))
color_map <- class_colors(tox_list)
font_size <- 5
chemicalSummary$shortName <- factor(chemicalSummary$shortName, levels = levels(site_info$`Short Name`))
upperPlot <- plot_tox_stacks_manuscript2(chemical_summary = chemicalSummary,
chem_site = site_info,
title=NA, cbValues = color_map,
font_size = font_size,
category = "Chemical Class")
title_text <- data.frame(
site_grouping = factor("Lake Superior",
levels = lakes_ordered),
x = Inf,
y = 0.125,
label = "Significant correlations with land cover:"
)
stack2 <- upperPlot +
geom_table_npc(data = df,
aes(npcx = x,
npcy = y,
label = tb), size = 2.5,
hjust = 1, vjust = 1) +
geom_text(data = title_text, size = 2.5,
aes(x=x, y=y, label=label),
hjust = 0, vjust = 0 )
stack2
```
Figure 3: Maximum exposure-activity ratios (EAR) by chemical class computed from passive sampler chemistry data from 69 Great Lakes tributary sites collected in 2010 and 2014 for chemicals included in the ToxCast database. An “X” in the embedded table indicates major land uses within the watersheds that are significantly correlated with exceedance of an EAR threshold of 0.001 for chemical classes. Chemical classes not represented in the table did not have significant correlations. [Map name, references locations included on the map in Figure 1; Chemicals, number of chemicals with computed EAR values.]