plot_ranges: Plot Time in Ranges as a bar plot

plot_rangesR Documentation

Plot Time in Ranges as a bar plot

Description

The function plot_ranges produces a barplot showing the percent of time in glucose ranges.

Usage

plot_ranges(data)

Arguments

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.

Details

Only a single subject's data may be used. There are four ranges: very low (below 54 mg/dL), low (54-69 mg/dL), target range (70-180 mg/dL), high (181-250 mg/dL), and very high (above 250 mg/dL). This plot is meant to be used as part of the Ambulatory Glucose Profile (AGP)

Value

Single subject bar chart showing percent in different glucose ranges.

Author(s)

Elizabeth Chun

References

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")}.

Examples


data(example_data_1_subject)
plot_ranges(example_data_1_subject)


iglu documentation built on Oct. 20, 2023, 5:07 p.m.