Learn R Programming

iglu (version 3.0.0)

epicalc_profile: Display Episode Calculation statistics for selected subject

Description

Display Episode Calculation statistics for selected subject

Usage

epicalc_profile(
  data,
  lv1_hypo = 100,
  lv2_hypo = 70,
  lv1_hyper = 120,
  lv2_hyper = 160,
  color_scheme = "Color Scheme 1"
)

Arguments

data

DataFrame object with column names "id", "time", and "gl"

lv1_hypo

A double specifying a hypoglycemia threshold for level 1

lv2_hypo

A double specifying a hypoglycemia threshold for level 2

lv1_hyper

A double specifying a hyperglycemia threshold for level 1

lv2_hyper

A double specifying a hyperglycemia threshold for level 2

color_scheme

String corresponding to the chosen color scheme. Acceptable choices are: "Color Scheme 1", "Color Scheme 2", and "Color Scheme 3". Color Scheme 1 is orange/green/red. Color Scheme 2 is red/white/blue. Color Scheme 3 is orange/green/red.

Value

A plot displaying the varying glucose levels (mg/dL) of the subject in a day as well as the statistics for the episodes.

Examples

Run this code
# NOT RUN {
epicalc_profile(example_data_1_subject)

# }

Run the code above in your browser using DataLab