trgattain <- targets |>
mutate(chla_thresh = 8.5)
# chlorophyll epc only target attainment
p1 <- show_wqmatrix(epcdata, bay_segment = 'OTB', yrrng = c(2018, 2024), param = 'chla', trgs = trgattain) +
labs(
subtitle = 'EPCHC'
)
# chlorophyll target attainment, pinellas uncorrected
tocmb <- pinchldat |>
select(-chla_corr) |>
rename(
chla = chla_uncorr,
epchc_station = station
) |>
mutate(sd_m = 1)
p2 <- show_wqmatrix(tocmb, bay_segment = 'OTB', yrrng = c(2018, 2024), param = 'chla', trgs = trgattain) +
labs(
subtitle = 'PDEM uncorrected'
)
# chlorophyll target attainment, pinellas corrected
tocmb <- pinchldat |>
select(-chla_uncorr) |>
rename(
chla = chla_corr,
epchc_station = station
) |>
mutate(sd_m = 1)
p3 <- show_wqmatrix(tocmb, bay_segment = 'OTB', yrrng = c(2018, 2024), param = 'chla', trgs = trgattain) +
labs(
subtitle = 'PDEM corrected'
)
# chlorophyll target attainment, epc, pinellas uncorrected
tocmb <- pinchldat |>
select(-chla_corr) |>
rename(
chla = chla_uncorr,
epchc_station = station
) |>
mutate(sd_m = 1)
cmbdat <- bind_rows(epcdata, tocmb)
p4 <- show_wqmatrix(cmbdat, bay_segment = 'OTB', yrrng = c(2018, 2024), param = 'chla', trgs = trgattain) +
labs(
subtitle = 'EPCHC,\nPDEM uncorrected'
)
# chlorophyll target attainment, epc, pinellas corrected
tocmb <- pinchldat |>
select(-chla_uncorr) |>
rename(
chla = chla_corr,
epchc_station = station
) |>
mutate(sd_m = 1)
cmbdat <- bind_rows(epcdata, tocmb)
p5 <- show_wqmatrix(cmbdat, bay_segment = 'OTB', yrrng = c(2018, 2024), param = 'chla', trgs = trgattain) +
labs(
subtitle = 'EPCHC,\nPDEM corrected'
)
p <- p1 + p2 + p3 + p4 + p5 + plot_layout(ncol = 5) & theme(plot.subtitle = element_text(size = 10))
p