Plot Benthic Cover Dynamics
plot_synthos.RdGenerate Benthic Cover Trajectory or Heatmap Plots
Arguments
- synthos_data
A data frame containing benthic survey observations. Required variables depend on
data_type:survey_depth– depth categoryproject_name– project identifiersite_name– site name (e.g., "Reef10 Site 1")survey_start_date– survey timestamppoint_machine_classification– benthic class (HCC, SC, MA, etc.) used whendata_type = "points"cover– numeric benthic cover values used whendata_type = "cover"
- type
A character string specifying the type of plot to generate:
"trajectories"– time‐series plots (usesplot_group())"heatmaps"– benthic cover heatmaps (usesplot_map())
- data_type
A character string indicating the structure of input data:
"points"– raw point-based benthic classifications"cover"– pre-aggregated benthic cover values
Value
A named list of ggplot objects, where each plot corresponds to a
unique combination of depth and benthic classification group. The resulting
list can be visualised directly or iterated over using purrr::walk().
Details
Produces a set of plots showing temporal patterns in benthic cover across
survey depths and benthic classification groups. The function supports two
data formats: point-level benthic classifications ("points") and
aggregated benthic cover values ("cover").
Depending on the type argument, the output is either a series of
time‐series trajectory plots or benthic‐cover heatmaps.
Based on data_type, the function:
aggregates point classifications into benthic cover proportions; or
averages numeric benthic cover values
Afterwards, it:
extracts year, reef, and site identifiers
splits the dataset by survey depth and classification
passes each subset to either
plot_group()orplot_map()returns all plots as a list