Learn R Programming

rGV (version 0.0.5)

diff_plot: Plots glucose changes over time

Description

Plots glucose changes over time

Usage

diff_plot(x, times, n = 1, s = 1, unit = "mg")

Value

A plot of n-hour glucose differences over time.

Arguments

x

vector of glucose readings

times

vector of corresponding times, in minutes

n

number of hours between "partner" observations. Null value is 1.

s

number of minutes of slack used when searching for partners. Null value is 1.

unit

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

Examples

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

Run the code above in your browser using DataLab