plot_timeseries: Plot timeseries estimates

View source: R/plot_timeseries.R

plot_timeseriesR Documentation

Plot timeseries estimates

Description

plot_timeseries plots a timeseries with standard errors shown as whiskers or a shaded polygon

Usage

plot_timeseries(
  x,
  y,
  y_sd,
  ybounds,
  fn = lines,
  ylim = NULL,
  bounds_type = "whiskers",
  bounds_args = list(),
  interval_width = 1,
  connect_ascending = TRUE,
  ...
)

Arguments

x

numeric-vector of x-coordinates to plot

y

numeric-vector of y-coordinates to plot

ybounds

alternate specification of y-coordinate whiskers; useful to avoid normal approximation

fn

what plotting function to use; default fn=lines does not create a new plotting window

bounds_type

which type either "whiskers" or "shading"

bounds_args

tagged list of additional arguments to pass to lines or polygon

interval_width

width of interval in normal approximation; only used when specifying ysd without ybounds

ysd

numeric-vector of standard errors in y-coordinates, used in normal approximation to interval


James-Thorson/FishStatsUtils documentation built on July 21, 2024, 2:17 a.m.