powered by
Plots glucose changes over time
diff_plot(x, times, n = 1, s = 1, unit = "mg")
A plot of n-hour glucose differences over time.
vector of glucose readings
vector of corresponding times, in minutes
number of hours between "partner" observations. Null value is 1.
number of minutes of slack used when searching for partners. Null value is 1.
"mg" if the units are mg/dL or "mmol" if the units are mmol/L. Null value is "mg".
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