plot_anomaly_timeseries: Make condition time series plot

View source: R/plot_anomaly_timeseries.R

plot_anomaly_timeseriesR Documentation

Make condition time series plot

Description

Make condition time series plot

Usage

plot_anomaly_timeseries(
  x,
  region,
  fill_color = "#0085CA",
  var_y_name = "mean_wt_resid",
  var_y_se_name = "se_wt_resid",
  var_x_name = "year",
  y_title = "Length-weight residual (ln(g))",
  format_for = "rmd",
  plot_type = "point",
  set_intercept = NULL
)

Arguments

x

Input data.frame

region

Region. AI, BS, or GOA. Character (1L).

fill_color

Fill color to use for points. Character (1L).

var_y_name

Name of the y variable in the data.frame. Character (1L).

var_y_se_name

Name of the standard error for the y variable. Character (1L).

var_x_name

Name of the x (time variable). Character (1L).

y_title

Y-axis title. Character (1L).

format_for

"rmd" or "png"

set_intercept

Intercept to use for plots. Numeric (1L). 0 for residual, 1 for VAST relative condition, NULL for VAST a

Value

A ggplot object of the time series

Examples

## Not run: 
# EBS anomaly timeseries plot

names(EBS_INDICATOR$FULL_REGION)

plot_anomaly_timeseries(x = EBS_INDICATOR$FULL_REGION,
fill_color = "#0085CA", 
var_y_name = "mean_wt_resid", 
var_y_se_name = "se_wt_resid",
var_x_name = "year",
y_title = "Length-weight residual (ln(g))",
format_for = "png")

## End(Not run)

afsc-gap-products/akfishcondition documentation built on June 11, 2025, 5:37 p.m.