plot_IPHC_ser_ABCD: Single plotting function for Series A, B, C, D, or...

View source: R/plot-iphc.R

plot_IPHC_ser_ABCDR Documentation

Single plotting function for Series A, B, C, D, or combination of two

Description

Plotting series.

Usage

plot_IPHC_ser_ABCD(
  series_ABCD_full,
  plot_type = "AB",
  x_lim = c(1995, 2022),
  y_lim = NULL,
  shift = 0.15,
  tck_length = -0.02,
  ser_A_col = "blue",
  ser_B_col = "red",
  ser_C_col = "orange",
  ser_D_col = "darkgreen",
  legend_text = NULL,
  x_lab = "Year",
  y_lab = "Catch rate index (numbers per effective skate)",
  gap_ci = 0.5,
  ...
)

Arguments

series_ABCD_full

list containing tibbles for ser_longest etc., an output from calc_iphc_full_res

plot_type

one of

  • X, where X is A, B, C, or D, to plot just Series X

  • X_Y_scaled to plot Series X and Y each scaled by their geometric mean of the overlapping years (no scaling if no overlapping years), where X and Y are A, B, C, or D.

  • XY to plot Series XY (with X rescaled in red), empty plot if longest series is just X or Y - TODO - maybe. where X and Y are A, B, C, or D.

x_lim

x limits

y_lim

y limits

shift

if plotting two then shift Series X to left and Y to right by shift amount

tck_length

small tickmark lengths

ser_A_col

colour for Series A

ser_B_col

colour for Series B

ser_C_col

colour for Series C

ser_D_col

colour for Series D

legend_text

text to override default if desired

x_lab

x label to override default if desired

y_lab

y label to override default if desired

gap_ci

gap (units of 'height of letter O') between cirlce and whiskers for confidence intervals

...

further arguments to gplots::plotCI

Value

Single plot for Series A, B, C, D, or combination of two

Author(s)

Andrew Edwards

Examples

## Not run: 
# See vignettes.

## End(Not run)

pbs-assess/gfiphc documentation built on July 4, 2023, 1:13 p.m.