cgmreport {cgmanalysis}R Documentation

Generate AGP

Description

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).

Usage

cgmreport(inputdirectory, outputdirectory = tempdir(), tz = "UTC", 
yaxis = c(0,400))

Arguments

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.

Value

Aggregate and per subject AGP reports based on all of the cleaned CGM data in the input directory.

Examples

cgmreport(system.file("extdata","Cleaned",package = "cgmanalysis"))

[Package cgmanalysis version 2.7.7 Index]