Skip to contents

Generates a line plot of a specified risk factor over time, grouped by source.

Usage

riskfactors(riskft, data_mean_weighted)

Arguments

riskft

A character string specifying the risk factor to plot. Options are: "bmi", "ei", "fat", "obese", "protein", "sodium".

data_mean_weighted

A data frame with weighted mean values for various metrics.

Value

A ggplot object representing the specified plot.