-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path04_marlin_paper_si.qmd
More file actions
259 lines (199 loc) · 9.21 KB
/
04_marlin_paper_si.qmd
File metadata and controls
259 lines (199 loc) · 9.21 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
---
title: "Simulating Benefits, Costs, and Tradeoffs of Spatial Management in Marine Social-Ecological Systems"
subtitle: "Supporting Information"
format:
pdf:
toc: false
fig-pos: 'H'
mainfont: Times New Roman
sansfont: Times New Roman
fontsize: 12pt
keep-tex: true
fig-format: png
html: default
docx: default
execute:
echo: false
message: false
warning: false
cache: false
csl: apa-6th-edition.csl
bibliography: references.bib
params:
run_name: ["v1.1"]
header-includes:
- \usepackage{setspace}\doublespacing
- \usepackage{lineno}\linenumbers
- \usepackage{bm}
editor:
markdown:
wrap: 80
---
```{r setup}
#| echo: false
#| message: false
#| include: false
source(here::here("00_setup.R"))
theme_set(theme_classic(base_size = 10, base_family = "Helvetica") + theme(strip.background = element_blank()))
if (!file.exists(here("data","sci_to_com.csv"))){
sci_to_com <- taxize::sci2comm(unique(marlin_inputs$scientific_name),simplify= TRUE,db='ncbi') %>%
bind_rows(.id = "critter") %>%
pivot_longer(everything(),names_to = "critter",values_to = "common_name") %>%
mutate(common_name = stringr::str_to_title(common_name))
write_csv(sci_to_com, file = here("data","sci_to_com.csv"))
} else{
sci_to_com <- read_csv(file = here("data","sci_to_com.csv"))
}
print(results_path)
results_files <- list.files(file.path(results_path))
rdses <- results_files[str_detect(results_files,'.rds')]
walk(rdses,~assign(str_remove(.x,".rds"), read_rds(file.path(results_path,.x)), envir = .GlobalEnv)) #load and assign all .rds objects in the appropriate results folder
coral_mpa_experiments$mpas <- map(coral_mpa_experiments$results, "mpa")
coral_mpa_experiments$obj <- map(coral_mpa_experiments$results, "obj")
```
\renewcommand{\thefigure}{S\arabic{figure}}
\renewcommand{\thetable}{S\arabic{table}}
Author Names: Daniel Ovando^1,2^, Darcy Bradley^3,4,5^, Echelle
Burns^3,4,5^,Lennon Thomas^3,4,5^, James Thorson^6^
Affiliations: ^1^ School of Aquatic and Fishery Sciences, University of
Washington,1122 NE Boat St Box 355020,Seattle, WA, USA ^3^ Marine Science
Institute, University of California, Santa Barbara, CA, USA ^4^ Bren School of
Environmental Science & Management, University of California, Santa Barbara, CA,
USA ^5^ Environmental Markets Lab, University of California, Santa Barbara, CA,
USA ^6^ Habitat and Ecological Processes Research Program, Alaska Fisheries
Science Center, NOAA, NMFS, NOAA, Seattle, WA, USA
```{r}
#| label: fig-coral-fleet
#| fig-cap: "Distribution of annual catches by fishing fleet prior to MPAs under the coral reef case study simulation."
coral_fauna <- coral_fauna_and_fleets$fauna
coral_fleets <- coral_fauna_and_fleets$fleets
resolution <- sqrt((coral_fauna[[1]]$patches))
grid <- expand_grid(x = 1:resolution, y= 1:resolution) %>%
mutate(patch = 1:nrow(.))
mpa_locations <- expand_grid(x = 1:resolution, y = 1:resolution) %>%
mutate(mpa = FALSE)
coral_sim <- simmar(
fauna = coral_fauna,
fleets = coral_fleets,
manager = list(mpas = list(
locations = mpa_locations,
mpa_year = 1
)),
years = 20
)
pcsim <- process_marlin(coral_sim, keep_age = FALSE)
pcsim$fleets |>
filter(year == max(year)) |>
group_by(fleet, x, y) |>
summarise(catch = sum(catch)) |>
group_by(fleet) |>
mutate(catch = catch / sum(catch)) |>
ggplot(aes(x, y, fill = catch)) +
geom_tile() +
facet_wrap( ~ fleet) +
scale_fill_viridis_c(name = "% of Annual Catch", labels = scales::percent) +
scale_x_continuous(name = "Longitude", expand = expansion()) +
scale_y_continuous(name = "Latitude", expand = expansion()) +
theme(
axis.text.x = element_blank(),
axis.text.y = element_blank(),
axis.ticks = element_blank(),
strip.text.y = element_text(size = 8)
)
```
```{r}
#| label: fig-coral-mpas
#| fig-cap: "Location of MPAs under the *Spawning Ground* and *Target Fishing* placement strategies for the coral reef case study simulations. Columns indicate whether MPA was designed around location of spawning grounds, or locations where the most biomass of fish was caught. Rows indicate the percent of the simulation grid placed in a no-take MPA. MPA sizes between 10% and 90% plotted."
mpa_trajectories <- coral_mpa_experiments |>
select(placement_strategy, prop_mpa, iter, mpas) |>
unnest(cols = mpas)
mpa_trajectories |>
filter(prop_mpa %in% seq(0.1,0.9, by = .1)) |>
mutate(p_prop_mpa = glue::glue("{prop_mpa * 100}%")) |>
mutate(p_prop_mpa = reorder(p_prop_mpa, prop_mpa)) |>
ggplot(aes(x,y,fill = mpa)) +
geom_tile() +
facet_grid(p_prop_mpa~placement_strategy) +
scale_x_continuous(name = "Longitude",expand = expansion()) +
scale_y_continuous(name = "Latitude",expand = expansion()) +
theme(axis.text.x = element_blank(),
axis.text.y = element_blank(),
axis.ticks = element_blank(),
strip.text.y = element_text(size = 8)) +
scale_fill_discrete(name = "", labels = c("Fished",'MPA'))
```
```{r}
#| label: fig-select-biodiv
#| fig-cap: "Change in SSB/SSB0 of simulated coral reef species relative to pre-MPA levels under alternative contact selectivity assumptions. 'dome' indicates that the contact selectivity of Fleet Two is assumed to be dome shaped for the snapper and grouper species (the default value presented in the main results). Logistic indicates that the contact selectivity of Fleet Two is assumed to be logistic (asymptotic) for all species."
sel_experiments |>
group_by(critter, experiment, placement_strategy) |>
mutate(biodiv = biodiv / biodiv[prop_mpa == 0] -1) |>
ggplot(aes(prop_mpa, 100 * pmin(2,biodiv), color = experiment)) +
geom_hline(aes(yintercept = 0), linetype = 2) +
geom_line() +
facet_grid(placement_strategy ~ critter) +
scale_y_continuous(name = "% Change from Baseline SSB/SSB0",
breaks = c(-25,seq(0,200, by = 50)),
labels = c(as.character(c(-25,seq(0,150, by = 50))),expression("">=200))) +
scale_color_discrete("Fleet Two Selectivity ") +
scale_x_continuous(name = "MPA Size", labels = scales::percent)
```
```{r}
#| label: fig-select-yield
#| fig-cap: "Change in total yield (biomass of fish caught) of simulated coral reef fishing fleets relative to pre-MPA levels under alternative contact selectivity assumptions. 'dome' indicates that the contact selectivity of Fleet Two is assumed to be dome shaped for the snapper and grouper species (the default value presented in the main results). Logistic indicates that the contact selectivity of Fleet Two is assumed to be logistic (asymptotic) for all species."
sel_experiments |>
select(critter, prop_mpa, placement_strategy, starts_with("fleet_"), experiment) |>
pivot_longer(starts_with("fleet_"), names_to = "fleet", values_to = "catch") |>
group_by(prop_mpa, placement_strategy, fleet, experiment) |>
summarise(catch = sum(catch)) |>
ungroup() |>
group_by(fleet, experiment, placement_strategy) |>
mutate(catch = catch / catch[prop_mpa == 0] -1) |>
ggplot(aes(prop_mpa, 100 * pmin(2,catch), color = experiment)) +
geom_hline(aes(yintercept = 0), linetype = 2) +
geom_line() +
facet_grid(fleet ~ placement_strategy ) +
scale_y_continuous(name = "% Change from Baseline Yields") +
scale_color_discrete("Fleet Two Selectivity ") +
scale_x_continuous(name = "MPA Size", labels = scales::percent)
```
```{r}
#| label: fig-rr
#| fig-cap: "Ratio of mean biomass inside MPAs relative to mean biomass outside MPAs as a function of MPA size. Only *Target Fishing* strategy is shown as biomass is roughly perfectly confounded with MPA location in the *Spawning Ground* design strategy."
coral_mpa_experiments$response_ratios <- map(coral_mpa_experiments$results, "response_ratio")
rrs <- coral_mpa_experiments |>
select(placement_strategy, prop_mpa, response_ratios) |>
unnest(cols = response_ratios)
rrs |>
filter(placement_strategy == "target_fishing", prop_mpa > 0, prop_mpa < 1) |>
group_by(placement_strategy, prop_mpa) |>
mutate(rr = biomass[mpa == TRUE] / biomass[mpa == FALSE]) |>
ungroup() |>
ggplot(aes(prop_mpa, rr, color = mpa)) +
geom_line() +
facet_wrap(~placement_strategy) +
scale_x_continuous(name = "MPA",labels = scales::label_percent(accuracy = 1), breaks = seq(0,1, by = .1)) +
scale_y_continuous(limits = c(0, NA), name = "Ratio of biomass inside MPA relative to Outside")
```
```{r}
#| label: fig-coral-ssb
#| fig-cap: "Spawning biomass divided by unfished spawning biomass in the time period prior to implementation of MPAs for the coral reef case study."
critter_biomass <-
map_df(coral_sim, ~ map_df(.x, ~tibble(ssb = rowSums(.x$ssb_p_a), patch = 1:nrow(.x$ssb_p_a)), .id = "critter"), .id = "step")
critter_biomass <- bind_cols(critter_biomass,marlin::process_step(critter_biomass$step)) %>%
mutate(step = marlin::clean_steps(step)) %>%
left_join(grid, by = "patch") %>%
group_by(critter, year, season,time_step) %>%
summarise(ssb = sum(ssb)) %>%
group_by(critter) %>%
mutate(depletion = ssb / ssb[time_step == min(time_step)])
fig_s2 <- critter_biomass %>%
ungroup() %>%
filter(time_step == max(time_step)) %>%
ggplot(aes(reorder(critter, depletion), depletion)) +
geom_col() +
scale_y_continuous(limits = c(0, 1), name = "SSB/SSB0", expand = expansion(mult = c(0.0,0.05))) +
labs(x = "") +
coord_flip()
fig_s2
```