diff_plot {rGV} | R Documentation |
Plots glucose changes over time
Description
Plots glucose changes over time
Usage
diff_plot(x, times, n = 1, s = 1, unit = "mg")
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". |
Value
A plot of n-hour glucose differences over time.
Examples
diff_plot(x=c(rep(100, 10), rep(120, 10), 105, 85), times=seq(0, 1260, 60), n=1, s=1, unit='mg')
[Package rGV version 0.0.4 Index]