Description Usage Arguments Details Value Author(s) References Examples
The function plot_agp produces an AGP plot that collapses all data into a single 24 hr "modal day".
1 |
data |
DataFrame object with column names "id", "time", and "gl". Should only be data for 1 subject. In case multiple subject ids are detected, the warning is produced and only 1st subject is used. |
LLTR |
Lower Limit of Target Range, default value is 70 mg/dL. |
ULTR |
Upper Limit of Target Range, default value is 180 mg/dL. |
dt0 |
The time frequency for interpolation in minutes, the default will match the CGM meter's frequency (e.g. 5 min for Dexcom). |
inter_gap |
The maximum allowable gap (in minutes) for interpolation. The values will not be interpolated between the glucose measurements that are more than inter_gap minutes apart. The default value is 45 min. |
tz |
A character string specifying the time zone to be used. System-specific (see |
title |
Indicator whether the title of the plot should display the subject ID. The default is FALSE (no title). |
Only a single subject's data may be plotted. The horizontal green lines represent the target range, default is 70-180 mg/dL. The black line is the median glucose value for each time of day. The dark blue shaded area represents 50% of glucose values - those between the 25th and 75 quartiles. The light blue shaded area shows 90% of the glucose values - those between the 5th and 95th quartiles. Additionally, the percents shown on the right hand side of the plot show which quartile each line refers to - e.g. the line ending at 95% is the line corresponding to the 95th quartile of glucose values.
Plot of a 24 hr modal day collapsing all data to a single day.
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, doi: 10.1089/dia.2019.0034.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.