Time-values profile plot for population simulations
Source:R/plot-population-time-profile.R
plotPopulationTimeProfile.Rd
Time-values profile plot for population simulations
Usage
plotPopulationTimeProfile(
dataCombined,
defaultPlotConfiguration = NULL,
quantiles = c(0.05, 0.5, 0.95)
)
Arguments
- dataCombined
A single instance of
DataCombined
class.- defaultPlotConfiguration
A
DefaultPlotConfiguration
object, which is anR6
class object that defines plot properties.- quantiles
A numerical vector with quantile values (Default:
c(0.05, 0.50, 0.95)
), with the quantile values defining the aggregation of individual data. In the profile plot, the middle value will be used to draw a line, while the lower and upper values will be used to create a ribbon.
See also
Other plotting:
DefaultPlotConfiguration
,
plotIndividualTimeProfile()
,
plotObservedVsSimulated()
,
plotResidualsVsSimulated()
,
plotResidualsVsTime()
Examples
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)
# 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
plotPopulationTimeProfile(myDataComb, myPlotConfiguration)