Last data update: 2014.03.03

R: Glucose levels over time
GlucoseR Documentation

Glucose levels over time

Description

The Glucose data frame has 378 rows and 4 columns.

Format

This data frame contains the following columns:

Subject

a factor with levels A to F

Time

a numeric vector

conc

a numeric vector of glucose levels

Meal

an ordered factor with levels 2am < 6am < 10am < 2pm < 6pm < 10pm

Source

Hand, D. and Crowder, M. (1996), Practical Longitudinal Data Analysis, Chapman and Hall, London.

Examples

require(lattice)
str(Glucose)
xyplot(conc ~ Time | Meal * Subject, Glucose)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MEMSS)
Loading required package: lme4
Loading required package: Matrix

Attaching package: 'MEMSS'

The following objects are masked from 'package:datasets':

    CO2, Orange, Theoph

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MEMSS/Glucose.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Glucose
> ### Title: Glucose levels over time
> ### Aliases: Glucose
> ### Keywords: datasets
> 
> ### ** Examples
> 
> require(lattice)
Loading required package: lattice
> str(Glucose)
'data.frame':	378 obs. of  4 variables:
 $ Subject: Factor w/ 6 levels "A","B","C","D",..: 1 1 1 1 1 1 1 1 1 1 ...
 $ Time   : num  -0.25 0 0.5 1 1.5 2 3 4 5 6 ...
 $ conc   : num  4.9 4.5 7.84 5.46 5.08 4.32 3.91 3.99 4.15 4.41 ...
 $ Meal   : Ord.factor w/ 6 levels "2am"<"6am"<"10am"<..: 3 3 3 3 3 3 3 3 3 3 ...
> xyplot(conc ~ Time | Meal * Subject, Glucose)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>