Skip to contents

[Deprecated]

Usage

plotObservedVsSimulated(
  dataCombined,
  defaultPlotConfiguration = NULL,
  foldDistance = NULL
)

Arguments

dataCombined

A single instance of DataCombined class containing both observed and simulated datasets to be compared.

defaultPlotConfiguration

A DefaultPlotConfiguration object, which is an R6 class object that defines plot properties.

foldDistance

A vector for plotting lines at required fold distances around the identity line (x=y). Set to NULL (default) to only draw identity line. Set to FALSE to not draw any lines. The vector can include only fold distance values >1. An x-fold distance is defined as all simulated values within the range between x-fold (depicted by the upper fold range line) and 1/x-fold (depicted by the lower fold range line) of observed values. The identity line can be interpreted as the 1-fold range.

Examples

# Create a new instance of `DefaultPlotConfiguration` class
myPlotConfiguration <- DefaultPlotConfiguration$new()
myPlotConfiguration$title <- "My Plot Title"
myPlotConfiguration$subtitle <- "My Plot Subtitle"
myPlotConfiguration$caption <- "My Sources"

# plot
plotObservedVsSimulated(dataCombinedAciclovir, myPlotConfiguration)
#> Warning: `plotObservedVsSimulated()` was deprecated in ospsuite 12.4.2.
#>  Please use `plotPredictedVsObserved()` instead.
#>  It will be removed in version 14.0.