Skip to contents

This function visualizes the relationship between predicted and observed values, allowing for easy identification of discrepancies.

Usage

ospsuite_plotPredictedVsObserved(
  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::plotPredVsObs`.

Value

A `ggplot2` plot object representing predicted vs observed values.

Examples

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