Skip to contents

This function visualizes the residuals over time, providing insights into the accuracy of the model predictions.

Usage

ospsuite_plotResidualsVsTime(
  plotData,
  metaData = NULL,
  mapping = ggplot2::aes(),
  ...
)

Arguments

plotData

An object of class DataCombined or a data.frame generated by a DataCombined object. Units should be consistent; if not, use `convertUnits(myDataCombined)` to standardize.

metaData

A list containing metadata for the plot. If NULL, a default list is constructed from the data.

mapping

additional mappings specified by user

...

Additional arguments passed to `ospsuite.plots::plotResVsCov`.

Value

A `ggplot2` plot object representing residuals vs time.

Examples

if (FALSE) { # \dontrun{
# Generate a residuals vs time plot for the provided data
plotResidualsVsTime(convertUnits(
  myDataCombined,
  xUnit = ospUnits$Time$h,
  yUnit = ospUnits$`Concentration [mass]`$`µg/l`
))
} # }