plot_food | R Documentation |
This function creates a line plot of glucose level changes over time. The changes are colored by meals. The function includes a grey rectangle behind the line plot for contrast.
plot_food(foodresults = NULL, foodname = "Food")
foodresults |
A dataframe, usually the result of a call to food_times_df. The dataframe should have the following columns:
|
foodname |
a string representing the name of the food to plot. Note: this is for display only; it does not filter or otherwise generate different results. |
A ggplot object representing the line plot of glucose level changes over time.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.