Create plot with error

plot_error(
  dat,
  x = "year",
  y = "estimate",
  geom = "point",
  group = NULL,
  facet = NULL,
  xlab = "Year",
  ylab = NULL,
  hline = TRUE,
  ...
)

Arguments

dat

filtered data frame from standard output file(s) preformatted for the target label from filter_data

x

a string of the column name of data used to plot on the x-axis (default is "year")

y

a string of the column name of data used to plot on the y-axis (default is "estimate")

geom

type of geom to use for plotting found in ggplot2 (e.g. "point", "line", etc.). Default is "line". Other options are "point" and "area".

group

a string of a single column that groups the data (e.g. "fleet", "sex", "area", etc.). Currently can only have one level of grouping.

facet

a string or vector of strings of a column that facets the data (e.g. "year", "area", etc.)

xlab

a string of the x-axis label (default is "Year")

ylab

a string of the y-axis label. If NULL, it will be set to the name of `y`.

hline

indicate true or false to place a horizontal line at 1

...

inherited arguments from internal functions from ggplot2::geom_xx