Skip to contents

Get annual averages of seagrass frequency occurrence by bay segments and year

Usage

anlz_transectave(
  transectocc,
  bay_segment = c("OTB", "HB", "MTB", "LTB", "BCB"),
  total = TRUE,
  yrrng = c(1998, 2021),
  rev = FALSE
)

Arguments

transectocc

data frame returned by anlz_transectocc

bay_segment

chr string for the bay segment, one to many of "OTB", "HB", "MTB", "LTB", "BCB"

total

logical indicating if average frequency occurrence is calculated for the entire bay across segments

yrrng

numeric indicating year ranges to evaluate

rev

logical if factor levels for bay segments are reversed

Value

A data frame of annual averages by bay segment

Details

The focat column returned in the results shows a color category based on arbitrary breaks of the frequency occurrence estimates (foest) at 25, 50, and 75 percent. These don't necessarily translate to any ecological breakpoints.

Examples

if (FALSE) {
transect <- read_transect()
}
transectocc <- anlz_transectocc(transect)
anlz_transectave(transectocc)
#> # A tibble: 144 × 4
#>       yr bay_segment foest focat  
#>    <dbl> <fct>       <dbl> <fct>  
#>  1  1998 Tampa Bay    69.5 #E9C318
#>  2  1998 OTB          70.9 #E9C318
#>  3  1998 HB           15.2 #CC3231
#>  4  1998 MTB          57.3 #E9C318
#>  5  1998 LTB          80.0 #2DC938
#>  6  1998 BCB          81.5 #2DC938
#>  7  1999 Tampa Bay    62.7 #E9C318
#>  8  1999 OTB          66.9 #E9C318
#>  9  1999 HB           10.1 #CC3231
#> 10  1999 MTB          57.4 #E9C318
#> # … with 134 more rows