Plot Risk Factor Prevalence Rates
plot_risk_factor.RdPlot Risk Factor Prevalence Rates
Usage
plot_risk_factor(
df,
risk_factor_class,
x_axis = "year",
split_by = "scenario",
age = NULL,
year = NULL
)Arguments
- df
A data frame containing batch output results from DYNAMO-HIA.
- risk_factor_class
Class of the risk factor to plot.
- x_axis
Column to use for x-axis (default
"year").- split_by
Column to use for color/fill splitting (default
"scenario").- age
Optional age group to filter. By default (
NULL), the youngest age group is used.- year
Optional year to filter. By default (
NULL), the earliest year is used.