FIPS Time Series Plot

FIPS_plot(
  dats,
  from = NULL,
  to = NULL,
  plot_stat = NULL,
  fatigue_CIs = FALSE,
  observed = NULL,
  observed_y = NULL,
  ...
)

Arguments

dats

A FIPS_simulation object (i.e., FIPS_df with simulation results)

from

The starting datetime to be plotted

to

The ending datetime to be plotted

plot_stat

Which variables to plot

fatigue_CIs

A logical indicating whether uncertainty intervals on fatigue should be plotted

observed

A data frame with any observed sleepiness ratings or objective indicators to plot against predictions

observed_y

The name of the observed sleepiness ratings in the observed data frame

...

additional arguments passed to ggplot2 theme_classic

Value

A ggplot2 object displaying fatigue and other requested processes over time