PlotResultsPopulationCurve.Rd
More intuitive interface to PlotPopulationCurve()
PlotResultsPopulationCurve(results, trial = 1, year = 2020, sex = "f", ...)
Results list (as returned by RunExperiments()
)
Trial number (index into the results list)
Year in trial timeseries to plot
Sex to plot (from c("m", "M", "f", "F"), defaults to female)
Parameters passed to PlotPopulationCurve()
ggplot grob, or NULL on error
if (FALSE) {
# These two function calls produce the same output:
pacehrh::PlotResultsPopulationCurve(results,
trial = 26, year = 2025, sex = "m")
pacehrh::PlotPopulationCurve(results[[26]]$Population[["2025"]]$Male)
}