Generates line plot of a specified risk factor over time, grouped by source.
Usage
riskfactors(riskft, data_weighted)
Arguments
- riskft
A character string specifying the risk factor to plot.
Options: "bmi", "energyintake", "fat", "obesity", "protein", "sodium".
- data_weighted
A data frame with weighted values for various metrics.
Value
A ggplot object representing the specified plot.