Skip to contents

This function visualizes the distribution of predicted vs observed values using a Q-Q plot.

Usage

ospsuite_plotQuantileQuantilePlot(
  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::plotQQ`.

Value

A `ggplot2` plot object representing the Q-Q plot.

Examples

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