plot_daily | R Documentation |
The function 'plot_daily' plots daily glucose time series profiles for a single subject.
plot_daily(data, maxd = 14, LLTR = 70, ULTR = 180, inter_gap = 45, tz = "")
data |
DataFrame with column names ("id", "time", and "gl"). |
maxd |
Default: 14. Number of days to plot. If less than 'maxd' days of data are available, all days are plotted. |
LLTR |
Default: 70. Lower Limit of Target Range in mg/dL. |
ULTR |
Default: 180. Upper Limit of Target Range in mg/dL. |
inter_gap |
Default: 45. The maximum allowable gap (in minutes). Gaps larger than this will not be connected in the time series plot. |
tz |
A character string specifying the time zone to be used. System-specific (see |
Only a single subject's data may be plotted. The black line shows the glucose values. The shaded gray area shows the target range, default 70-180 mg/dL. Areas of the curve above the ULTR are shaded yellow, while areas below the LLTR are shaded red.
Daily glucose time series plots for a single subject
Elizabeth Chun
Johnson et al. (2019) Utilizing the Ambulatory Glucose Profile to Standardize and Implement Continuous Glucose Monitoring in Clinical Practice, Diabetes Technology and Therapeutics 21:S2 S2-17-S2-25, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1089/dia.2019.0034")}.
data(example_data_1_subject)
plot_daily(example_data_1_subject)
plot_daily(example_data_1_subject, LLTR = 100, ULTR = 140)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.