Time-profile plot of individual data
Source:R/plot-individual-time-profile.R
plotIndividualTimeProfile.RdUsage
plotIndividualTimeProfile(
dataCombined,
defaultPlotConfiguration = NULL,
showLegendPerDataset = FALSE
)Arguments
- dataCombined
A single instance of
DataCombinedclass containing both observed and simulated datasets to be compared.- defaultPlotConfiguration
A
DefaultPlotConfigurationobject, which is anR6class object that defines plot properties.- showLegendPerDataset
Logical flag to display separate legend entries for observed and simulated datasets, if available. This is experimental and may not work reliably when both observed and simulated datasets > 1. Defaults to
FALSE.
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
plotIndividualTimeProfile(dataCombinedAciclovir, myPlotConfiguration)
#> Warning: `plotIndividualTimeProfile()` was deprecated in ospsuite 12.4.2.
#> ℹ Please use `plotTimeProfile()` instead.
#> ℹ It will be removed in version 14.0.