Open Yuri05 opened 7 months ago
33.zip ospsuite-R version 12.0.482
library(ospsuite) sim=loadSimulation("SPOP1.pkml") pop=loadPopulation("SPOP1.csv") simResults = runSimulation(sim, pop) myDataCombined <- DataCombined$new() myDataCombined$addSimulationResults(simResults) obsData <- lapply(c("ObsDataAciclovir_1.pkml", "ObsDataAciclovir_2.pkml", "ObsDataAciclovir_3.pkml"),function(x) loadDataSetFromPKML(system.file("extdata", x, package = "ospsuite"))) names(obsData) <- lapply(obsData, function(x) x$name) myDataCombined$addDataSets(obsData$`Vergin 1995.Iv`,groups = "Aciclovir PVB") plotPopulationTimeProfile(dataCombined = myDataCombined) plotIndividualTimeProfile(dataCombined = myDataCombined)
results in:
> plotPopulationTimeProfile(dataCombined = myDataCombined) Error in initialize(...) : unused argument (margin = c(20, 2, 10, 2)) > plotIndividualTimeProfile(dataCombined = myDataCombined) Error in initialize(...) : unused argument (margin = c(20, 2, 10, 2))
33.zip ospsuite-R version 12.0.482
results in: