Open KatrinCoboeken opened 5 years ago
Figure is used to compare predicted vs observed values.
Data
· Data.frame/data.table with following columns
o predicted (double) value of the predicted output to show in the unit of display, so no unit conversion is needed
o observed (double) value of the predicted output to show in the unit of display, so no unit conversion is needed
o Group (ordered factor) (character)
it is used to group individual results,
it is also used for legend (e.g. “Pediatric population”,”Adult Population”)
order of factor is used for order on X-Axis
· simulationResult.Metadata metada of Simulation Result
List with following entries:
o Value_unit: character
FigureConfiguration:
· Xlabel (e.g. ‘Cmax observed’)
· Ylabel (e.g. ‘Cmax predicted’)
· Scale: character (default ‘lin’)
· Lim vector of length 2 (e.g c(0,24)), default NULL range to display, if NULL range is calculated to cover whole range of predicted and observed
· colorscale_groups (default NULL, then take R defaults) defines colors for different groups
· doPlotTrendLine (default = TRUE)
List with entries
· Figure: Figure object
· Create a scatter plot, plot predicted as Y and observed as X
· Scatter plot should be square
· Y and x axis same scale and same range
· Plot line of identity
· If doPlotTrendLine Plot trend line
· Set color by group
· group name with rsquare
· according to Xlabel and Ylabel issue #27 Figure: plot time profile
Example
Figure: predicted vs observed
Figure is used to compare predicted vs observed values.
Arguments:
Data
· Data.frame/data.table with following columns
o predicted (double) value of the predicted output to show in the unit of display, so no unit conversion is needed
o observed (double) value of the predicted output to show in the unit of display, so no unit conversion is needed
o Group (ordered factor) (character)
it is used to group individual results,
it is also used for legend (e.g. “Pediatric population”,”Adult Population”)
order of factor is used for order on X-Axis
· simulationResult.Metadata metada of Simulation Result
List with following entries:
o Value_unit: character
FigureConfiguration:
· Xlabel (e.g. ‘Cmax observed’)
· Ylabel (e.g. ‘Cmax predicted’)
· Scale: character (default ‘lin’)
· Lim vector of length 2 (e.g c(0,24)), default NULL range to display, if NULL range is calculated to cover whole range of predicted and observed
· colorscale_groups (default NULL, then take R defaults) defines colors for different groups
· doPlotTrendLine (default = TRUE)
Return:
List with entries
· Figure: Figure object
Details:
Plotting of simulated results
· Create a scatter plot, plot predicted as Y and observed as X
· Scatter plot should be square
· Y and x axis same scale and same range
· Plot line of identity
· If doPlotTrendLine Plot trend line
· Set color by group
Legend should contain
· group name with rsquare
Xlabel and Ylabel
· according to Xlabel and Ylabel issue #27 Figure: plot time profile