From 76da6ef393210152719832f891ce900b028aa8c4 Mon Sep 17 00:00:00 2001
From: Kaysa Vaarre-Lamoureux <kvaarre-lamoureux@usgs.gov>
Date: Wed, 12 Mar 2025 09:23:40 -0400
Subject: [PATCH] edit top threat by basin map names

---
 findex/_targets.R                             |   4 ++--
 ...> Climate_and_weather_threat_by_basin.png} | Bin 731017 -> 731017 bytes
 ...g => Fishing_pressure_threat_by_basin.png} | Bin 686398 -> 686398 bytes
 src/assets/images/Habitat_threat_by_basin.png | Bin 761193 -> 761193 bytes
 ...g => Invasive_species_threat_by_basin.png} | Bin 732004 -> 732004 bytes
 .../images/Pollution_threat_by_basin.png      | Bin 701295 -> 701295 bytes
 6 files changed, 2 insertions(+), 2 deletions(-)
 rename src/assets/images/{Climate and weather_threat_by_basin.png => Climate_and_weather_threat_by_basin.png} (99%)
 rename src/assets/images/{Fishing pressure_threat_by_basin.png => Fishing_pressure_threat_by_basin.png} (99%)
 rename src/assets/images/{Invasive species_threat_by_basin.png => Invasive_species_threat_by_basin.png} (99%)

diff --git a/findex/_targets.R b/findex/_targets.R
index d52d08f..9f4e0ae 100644
--- a/findex/_targets.R
+++ b/findex/_targets.R
@@ -250,11 +250,11 @@ p3 <- list(
         theme(legend.position = "none")
       
       # change to actual directory once design is finalized --------------------
-      ggsave(sprintf("../src/assets/images/%s_threat_by_basin.png", p2_threat_categories), 
+      ggsave(sprintf("../src/assets/images/%s_threat_by_basin.png", str_replace_all(p2_threat_categories, " ", "_")), 
              final_plot, height = 6, width = 10, dpi = 300)
       
       # change to actual directory once design is finalized --------------------
-      knitr::plot_crop(sprintf("../src/assets/images/%s_threat_by_basin.png", p2_threat_categories))
+      knitr::plot_crop(sprintf("../src/assets/images/%s_threat_by_basin.png", str_replace_all(p2_threat_categories, " ", "_")))
     },
     format = "file",
     pattern = p2_threat_categories
diff --git a/src/assets/images/Climate and weather_threat_by_basin.png b/src/assets/images/Climate_and_weather_threat_by_basin.png
similarity index 99%
rename from src/assets/images/Climate and weather_threat_by_basin.png
rename to src/assets/images/Climate_and_weather_threat_by_basin.png
index 89834530c3d79417fe6d698bb32a86d639ced1da..c2de7cd880de3198861b0f5bf5d18b617cabedc8 100644
GIT binary patch
delta 54
zcmeA?uhV&6XF@#(53h)DkfK6VV|!~mV{1E8YddpmJ4<UjYim1OYdd>uJ4b6fXKOpx
J)^=_tbpQ(75_A9n

delta 54
zcmeA?uhV&6XF@#(t01?onV#Cm#`e~B#@2SG)^_IBc9zz5*4B2m)^_&Rc8=C|&enFW
Jt?k@Q>Hs0~6A%CZ

diff --git a/src/assets/images/Fishing pressure_threat_by_basin.png b/src/assets/images/Fishing_pressure_threat_by_basin.png
similarity index 99%
rename from src/assets/images/Fishing pressure_threat_by_basin.png
rename to src/assets/images/Fishing_pressure_threat_by_basin.png
index b8282d0263259feb201e0729f20b17f8756bf139..7637eadf83c82cb6cddb6beb339421636e2fdd4e 100644
GIT binary patch
delta 51
zcmdn@Nps&P%?b4!JiNkYVJS(s8rxgj8C%<#THBdh+gV!MSzFuLTHD!M+c{d>Ik&cR
HZLa_TAC?q2

delta 51
zcmdn@Nps&P%?b4!tb*KP?W*UmHnz96Gq$!fwYD?2wzIUhv$nRgwYIajwsW+$b8c<t
H+Fk(wCBzhG

diff --git a/src/assets/images/Habitat_threat_by_basin.png b/src/assets/images/Habitat_threat_by_basin.png
index 3c95f935ab13d1f15f9236630b5e81ef7ae76ed9..b9746875b053a020247da0743da69d9839ab3efc 100644
GIT binary patch
delta 54
zcmaF4OYh|_y$SUkJiNmCM*OFw8rxgj8C%<#THBdh+gV!MSzFuLTHD!M+c{d>Ia}Mg
KwzhLWngakis}!~X

delta 54
zcmaF4OYh|_y$SUktb*KpQ#`|)8{1pk8C%<#THBdh+gV!MSzFuLTHD!M+c{d>Ia}Mg
KwzhLWngakyF%=vD

diff --git a/src/assets/images/Invasive species_threat_by_basin.png b/src/assets/images/Invasive_species_threat_by_basin.png
similarity index 99%
rename from src/assets/images/Invasive species_threat_by_basin.png
rename to src/assets/images/Invasive_species_threat_by_basin.png
index 5ce38276e3ad8345aa11732190bd3c0c733a2965..ff5d3c42c268b9980c43763a74f5be9f959e9620 100644
GIT binary patch
delta 54
zcmaEIP3OrqoeA|EJiH>z{?iQX8rxgj8C%<#THBdh+gV!MSzFuLTHD!M+c{d>Ia}Mg
KwzhNM)dB!QE);A4

delta 54
zcmaEIP3OrqoeA|Etb*Kfo&VgQH@3I7Gq$!fwYD?2wzIUhv$nRgwYIajwsW+$bGEi~
KZEfeis|5ghuNB<@

diff --git a/src/assets/images/Pollution_threat_by_basin.png b/src/assets/images/Pollution_threat_by_basin.png
index 189e9b94cedffe2c4463a8671947e4822139c505..e2fc349e0b14273c1312a42bb51cfbd50244b9e0 100644
GIT binary patch
delta 51
zcmaF=OzZtKtqJuUJiH>@j=np18rxgj8C%<#THBdh+gV!MSzFuLTHD!M+c{d>Ik&cR
Hz1Rc*5)c$2

delta 51
zcmaF=OzZtKtqJuUtb*LC7GKvLZftLDXKZa}YHeq3ZD(n1XKig~Yi(z5ZRcoh=iJ)P
H^<onMLaP;f

-- 
GitLab