cgmreport | R Documentation |
This function takes a directory of cleaned CGM data and generates two aggregate AGPs for all of the files combined. One aggregate AGP is produced using Tukey smoothing, and the other uses ggplot's built in LOESS smoothing function. The function also produces an AGP plot with each unique subject plotted individually on the same graph (using LOESS smoothing).
cgmreport(inputdirectory, outputdirectory = tempdir(), tz = "UTC",
yaxis = c(0,400))
inputdirectory |
The directory containing all cleaned, formatted CGM data to be analyzed. |
outputdirectory |
The directory where plot PDF files should be written. |
tz |
The time zone in which the data were recorded. |
yaxis |
The range of the yaxis in mg/dL. |
Aggregate and per subject AGP reports based on all of the cleaned CGM data in the input directory.
cgmreport(system.file("extdata","Cleaned",package = "cgmanalysis"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.