View source: R/sensivitity-time-profiles.R
sensitivityTimeProfiles | R Documentation |
Creates time profiles for selected outputs generated in a sensitivity analysis. This function plots time profiles for each specified output path, illustrating the dynamics of model outputs to parameter variations.
sensitivityTimeProfiles(
sensitivityCalculation,
outputPaths = NULL,
parameterPaths = NULL,
xAxisScale = NULL,
yAxisScale = NULL,
xUnits = NULL,
yUnits = NULL,
observedData = NULL,
defaultPlotConfiguration = NULL
)
sensitivityCalculation |
The |
outputPaths , parameterPaths |
A single or a vector of the
output path(s) to be plotted for parameter path(s) which impact is analyzed,
respectively. If |
xAxisScale |
Character string, either "log" (logarithmic scale) or "lin" (linear scale), to set the x-axis scale. Default is "lin". |
yAxisScale |
Character string, either "log" or "lin", sets the y-axis
scale similarly to |
xUnits , yUnits |
Lists of units for the x-axis and y-axis, respectively.
If a list of length one is provided, it will be applied to all |
observedData |
Optional. A set of |
defaultPlotConfiguration |
An object of class Supported parameters for
|
A patchwork
object containing the combined ggplot objects if a
single output path is specified, or a list of patchwork
objects for
multiple output paths.
Other sensitivity-calculation:
sensitivityCalculation()
,
sensitivitySpiderPlot()
,
sensitivityTornadoPlot()
## Not run:
simPath <- system.file("extdata", "Aciclovir.pkml", package = "ospsuite")
simulation <- loadSimulation(simPath)
outputPaths <- "Organism|PeripheralVenousBlood|Aciclovir|Plasma (Peripheral Venous Blood)"
parameterPaths <- c(
"Aciclovir|Lipophilicity",
"Applications|IV 250mg 10min|Application_1|ProtocolSchemaItem|Dose",
"Neighborhoods|Kidney_pls_Kidney_ur|Aciclovir|Glomerular Filtration-GFR|GFR fraction"
)
results <- sensitivityCalculation(
simulation = simulation,
outputPaths = outputPaths,
parameterPaths = parameterPaths
)
# Print plots with default settings
sensitivityTimeProfiles(results)
# Print plots with linear y-axis values
sensitivityTimeProfiles(results, yAxisScale = "lin")
# Print plots with custom configuration settings
myPlotConfiguration <- createEsqlabsPlotConfiguration()
myPlotConfiguration$linesColor <- c("#4D8076", "#C34A36")
myPlotConfiguration$subtitle <- "Custom settings"
sensitivityTimeProfiles(results, defaultPlotConfiguration = myPlotConfiguration)
# Use named parameter paths to customize facet labels
namedParameterPaths <- c(
"Lipophilicity" = "Aciclovir|Lipophilicity",
"Dose" = "Applications|IV 250mg 10min|Application_1|ProtocolSchemaItem|Dose",
"GFR fraction" = "Neighborhoods|Kidney_pls_Kidney_ur|Aciclovir|Glomerular Filtration-GFR|GFR fraction"
)
resultsNamed <- sensitivityCalculation(
simulation = simulation,
outputPaths = outputPaths,
parameterPaths = namedParameterPaths
)
sensitivitySpiderPlot(resultsNamed)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.