Skip to contents

Create a colorized table for chlorophyll or secchi exceedances

Usage

show_wqmatrixpep(
  dat,
  param = c("chla", "sd"),
  txtsz = 3,
  trgs = NULL,
  yrrng = NULL,
  alpha = 1,
  bay_segment = c("1a", "1b", "2", "3"),
  asreact = FALSE,
  nrows = 10,
  family = NA
)

Arguments

dat

data.frame formatted from read_pepwq

param

chr string for which parameter to plot, one of "chla" for chlorophyll or "sd" for secchi

txtsz

numeric for size of text in the plot, applies only if tab = FALSE

trgs

optional data.frame for annual bay segment water quality targets, defaults to peptargets

yrrng

numeric vector indicating min, max years to include

alpha

numeric indicating color transparency

bay_segment

chr string for bay segments to include, one to all of "1a", "1b", "2", or "3"

asreact

logical indicating if a reactable object is returned

nrows

if asreact = TRUE, a numeric specifying number of rows in the table

family

optional chr string indicating font family for text labels

Value

A static ggplot object is returned if asreact = FALSE, otherwise a reactable table is returned

Examples

show_wqmatrixpep(rawdat)
#> Warning: Removed 4 rows containing missing values or values outside the scale range
#> (`geom_text()`).