Residual Plot

metric_residual_plot(
  metric_dat,
  var,
  filename = NA,
  draw.plot = is.na(filename)
)

Arguments

metric_dat

dataframe to plot, with at least columns `time`, `model`, `obvs`

var

variable name, used as plot title

filename

path to save plot, or NA to not save

draw.plot

logical: Return the plot object?

Author

Betsy Cowdery