Plot time series of chlorophyll a (chl), primary production (pp), weekly, monthly, or anomalies.

plot_chl_pp(
  shadedRegion = NULL,
  report = "MidAtlantic",
  varName = "chl",
  plottype = "weekly",
  year = NULL
)

Arguments

shadedRegion

Numeric vector. Years denoting the shaded region of the plot (most recent 10)

report

Character string. Which SOE report ("MidAtlantic", "NewEngland")

varName

Character string. Which Variable to plot ("chl","pp")

plottype

Character string. Which plot ("weekly", "monthly", "anomaly") Weekly and monthly plots are for both variables, annual anomaly plot for PP only.

year

Numeric value. Optional. Year for weekly plot, defaults to max year in data.

Value

ggplot object