Skip to contents

Analyze data

Functions for converting raw data to indicator outcomes, and for combining indicators into bay segment scores.

anlz_category()
Combine indicators into a single score by bay segment and year
anlz_fw_nonnative_abundance()
Non-native species abundance outcome by bay segment and year
anlz_fw_nonnative_obs()
Non-native species occurrence points, clipped and assigned to a bay segment
anlz_fw_nonnative_richness()
Non-native species richness outcome by bay segment and year
anlz_fw_tbni()
Tampa Bay Nekton Index (TBNI) outcome by bay segment and year
anlz_hab_seagrass_coverage()
Seagrass coverage outcome by bay segment and year
anlz_hab_seagrass_transect()
Seagrass transect frequency of occurrence outcome by bay segment and year
anlz_indicators()
Stack indicator outcomes into one long-format table
anlz_score()
Overall bay segment score across all four indicator categories
anlz_sed_peltel()
Sediment quality (PEL/TEL) outcome by bay segment and year
anlz_sed_tbbi()
Benthic index (TBBI) outcome by bay segment and year
anlz_wq_attain()
Water quality attainment outcome by bay segment and year
anlz_wq_fib()
Fecal indicator bacteria (FIB) outcome by bay segment and year
anlz_wq_load()
Nutrient loading outcome by bay segment, year, and indicator
anlz_wq_thresh()
Water quality threshold attainment outcome by bay segment, year, and variable
anlz_wq_tidalcreeks()
Tidal creek condition outcome by bay segment and year

Plot results

Functions to visualize indicator scores.

plot_category()
Sunburst plot of indicator outcomes for one category, bay segment, and year
plot_score()
Sunburst plot of indicator, category, and overall outcomes for one bay segment and year
plot_trend()
Faceted trend plot of indicator, category, and overall outcomes over time

Internal datasets

Supporting datasets used by the other functions.

aoi_shp
Area of interest boundary for non-native species occurrence data
bayseg_shp
Bay segment boundaries for non-native species occurrence data
sgsegest
Seagrass coverage estimates by bay segment and year

Utility functions

Utility functions used by other functions or standalone.

util_fw_fetch_fim()
Fetch the Tampa Bay FIM species dataset
util_fw_fetch_nas()
Fetch USGS NAS non-native species occurrences for a set of HUC8 watersheds
util_fw_nonnative_areas()
Bay segment and AOI areas for non-native species density calculations
util_fw_nonnative_long()
Reshape a non-native metric's wide year-by-segment table to long format
util_outcome()
Convert raw indicator values to a 0-1 outcome score
util_percentile()
Convert a wide data frame of values to percentiles by mean and standard deviation
util_rdataload()
Load an RData file from a URL