Skip to contents

Plot Shannon diversity of catches

Usage

plot_catch_diversity(
  data,
  x_column,
  y_column,
  color_var,
  y_label,
  legend_labels
)

Arguments

x_column

variable that is typically year

y_column

variable that is the calculated shannon index

color_var

character or factor variable

y_label

character string in ""

legend_labels

list of legend labels in ""

Value

a plot with smoothed lines and an averaged loess line