plot_intervention | R Documentation |
This function generates a plot of glucose responses over time, showing vertical bars representing the range of glucose values for each time point. The bars are color-coded based on whether the meal includes the specified intervention.
plot_intervention(foodresults = NULL, intervention = "glucotrojan")
foodresults |
A data frame containing the glucose measurements. This is typically generated
by calling |
intervention |
A string representing the intervention (e.g., "glucotrojan"). The function will check whether each meal includes this intervention. |
A ggplot2 object representing the glucose response plot. The plot can be further customized using additional ggplot2 functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.