Materials for creating a habitat report card for the Habitat Master Plan and Habitat Restoration Consortium
Report card: link
Tables and figures: link
Restoration potential map: link
Potential oyster restoration thresholds by bay segment: link
The tables and figures link above can be updated as source material for the habitat report card. This should be done each year once the file restoration.csv
is updated in the TBEP_Habitat_Restoration repository. The data can also be updated with new SWFWMD land use land cover maps, approximately every three years (the restoration potential map should also be updated with these new data). Follow the steps below to update the tables and figures. These files depend on many R packages, so you will likely need to install them before running.
- Pull the latest version of the repository to your local machine.
- Run all of the contents in the file
R/dat_proc.R
down to line 45. This retrieves the filerestoration.csv
, formats it, and saves it as an updated file calleddata/rstdatall.RData
for creating the tables and figures. - Run all of the contents in the file
R/figs.R
. This creates multiple figures that are placed indocs/figs
, which are used in the rendered Quarto file and can also be used as standalone files. - Run all of the contents in the file
R/tabs.R
. This creates multiple tables that are placed indocs/tabs
, which are used in the rendered Quarto file and can also be used as standalone files. - Open and render the Quarto file
docs/summaries.qmd
. An updated HTML file calledsummaries.html
will be created in thedocs
folder. This file can be viewed in a web browser and is the link provided above. - Commit and push the updated files to the repository. The link above should be updated with the changes in a few minutes.