Skip to contents

Residual Plot

Usage

metric_residual_plot(
  metric_dat,
  var,
  unit = NULL,
  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

unit

measurement unit for the variable, added to the y-axis label; NULL to omit

filename

path to save plot, or NA to not save

draw.plot

logical: Return the plot object?

Author

Betsy Cowdery