Learn R Programming

rGV (version 0.0.5)

cgm_plot: Plot glucose values over time

Description

Plot glucose values over time

Usage

cgm_plot(x, times, unit = "mg")

Value

A plot of glucose values over time.

Arguments

x

vector of glucose readings

times

vector of corresponding times, in minutes

unit

"mg" if the units are mg/dL or "mmol" if the units are mmol/L. Null value is "mg".

Examples

Run this code
cgm_plot(x=c(rep(100, 10), rep(120, 10), 105, 85), times=seq(0, 1260, 60), unit='mg')

Run the code above in your browser using DataLab