plot_xy_corr: Plot of condition versus condition

View source: R/plot_xy_corr.R

plot_xy_corrR Documentation

Plot of condition versus condition

Description

Plot of condition versus condition

Usage

plot_xy_corr(
  x_1,
  x_2,
  region,
  series_name_1 = "Historical",
  var_y_name_1 = "mean_wt_resid",
  var_y_se_name_1 = "se_wt_resid",
  var_x_name_1 = "year",
  series_name_2 = "VAST",
  var_y_name_2 = "mean_wt_resid",
  var_y_se_name_2 = "se_wt_resid",
  var_x_name_2 = "year",
  format_for = "rmd"
)

Arguments

x_1

A data.frame for the first time series.

x_2

A data.frame for the second time series.

region

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

var_y_name_1

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

var_y_se_name_1

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

var_x_name_1

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

var_y_name_2

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

var_y_se_name_2

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

var_x_name_2

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

format_for

"rmd" or "png"

fill_colors

Fill colors to use for points. Character (2L).

scale_y

Logical. Should y variables be Z-score transformed?

y_title

Y-axis title. Character (1L).

Value

A ggplot object of the time series


sean-rohan-NOAA/akfishcondition documentation built on June 9, 2025, 3:54 p.m.