View source: R/plot-population-time-profile.R
plotPopulationTimeProfile | R Documentation |
Time-values profile plot for population simulations
plotPopulationTimeProfile(
dataCombined,
defaultPlotConfiguration = NULL,
aggregation = "quantiles",
quantiles = c(0.05, 0.5, 0.95),
...
)
dataCombined |
A single instance of |
defaultPlotConfiguration |
A |
aggregation |
The type of the aggregation of individual data. One of
|
quantiles |
A numerical vector with quantile values (Default: |
... |
additionnal arguments to pass to |
The simulated values will be aggregated across individuals for each time point.
For aggregation = quantiles
(default), the quantile values defined in the
argument quantiles
will be used. In the profile plot, the middle value
will be used to draw a line, while the lower and upper values will be used
as the lower und upper ranges. For aggregation = arithmetic
, arithmetic
mean with arithmetic standard deviation (SD) will be plotted. Use the
optional parameter nsd
to change the number of SD to plot above and below
the mean. For aggregation = geometric
, geometric mean with geometric
standard deviation (SD) will be plotted. Use the optional parameter nsd
to
change the number of SD to plot above and below the mean.
Other plotting:
DefaultPlotConfiguration
,
plotIndividualTimeProfile()
,
plotObservedVsSimulated()
,
plotResidualsVsSimulated()
,
plotResidualsVsTime()
simFilePath <- system.file("extdata", "Aciclovir.pkml", package = "ospsuite")
sim <- loadSimulation(simFilePath)
populationResults <- importResultsFromCSV(
simulation = sim,
filePaths = system.file("extdata", "SimResults_pop.csv", package = "ospsuite")
)
# Create a new instance of `DataCombined` class
myDataComb <- DataCombined$new()
myDataComb$addSimulationResults(populationResults)
# plot
plotPopulationTimeProfile(myDataComb)
# plot with other quantiles
plotPopulationTimeProfile(myDataComb, quantiles = c(0.1, 0.5, 0.9))
# plot with arithmetic mean
plotPopulationTimeProfile(myDataComb,
aggregation = "arithmetic"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.