epicalc_profile: Display Episode Calculation statistics for selected subject

Description Usage Arguments Value Author(s) Examples

View source: R/epicalc_profile.R

Description

Display Episode Calculation statistics for selected subject

Usage

1
2
3
4
5
6
7
8
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.

Author(s)

Johnathan Shih, Jung Hoon Seo

Examples

1

iglu documentation built on Sept. 9, 2021, 1:07 a.m.