boxplotCGM.fn {CGManalyzer}R Documentation

Draw a boxplot for continuous glucose monitoring data sensor by sensor

Description

a function to draw a boxplot for continuous glucose monitoring data sensor by sensor

Usage

boxplotCGM.fn(dataFolder, dataFiles, idxNA = NA, responseName, sensorIDs,
columnNames = NULL, yRange, skip = 0, header = TRUE, comment.char = "", sep = ",",
cex.axis1 = 0.75)

Arguments

dataFolder

name for the folder for holding data

dataFiles

names of the data files to be read in R

idxNA

symbol to represent a missing value, such as NA

responseName

name to represent the response to be analyzed, such as 'glucose'

sensorIDs

names of sensors or subjects

columnNames

names of columns of the data after reading in R

yRange

range of y-axis to be drawn in the boxplot

skip

number of lines to be skipped in each data file when the data is read in R

header

the same meaning as in read.table()

comment.char

the same meaning as in read.table()

sep

the same meaning as in read.table()

cex.axis1

cex for the x-axis

Details

a box plot for the data by each sensor or subject

Value

No value return; draw a boxplot

Author(s)

Xiaohua Douglas Zhang

References

Zhang XD, Zhang Z. CGManalyzer: a R package for analyzing continuous glucose monitoring studies

Examples

library(CGManalyzer)
package.name <- "CGManalyzer"
source( system.file("SPEC", "SPECexample.R", package = package.name) )
summary.arr <- summaryCGM.fn(dataFolder, dataFiles, responseName, sensorIDs, columnNames,
            skip=Skip, header=Header, comment.char=Comment.char, sep=Sep)
yRange <- c( min(summary.arr[, "Min",responseName], na.rm=TRUE),
      max(summary.arr[, "Max",responseName], na.rm=TRUE))
boxplotCGM.fn(dataFolder, dataFiles, idxNA, responseName, sensorIDs, columnNames, yRange,
            skip=Skip, header=Header, comment.char=Comment.char, sep=Sep, cex.axis1=1)

[Package CGManalyzer version 1.3 Index]