Last data update: 2014.03.03

R: Data range
data.rR Documentation

Data range

Description

CDC growth chart of heights of female children aged 0 to 120 months.

Usage

data("data.r")

Format

A data frame with 121 observations on the following 3 variables.

Age

a numeric vector

Per_5

a numeric vector

Per_95

a numeric vector

Details

Range data needed for the simulated data.

Source

http://www.cdc.gov/growthcharts/clinical_charts.htm

Examples

data(data.r)
## plot Range boundary lines
tol <- 3
plot(data.r$Age, data.r$Per_5, type="l", lty=2, col=2)
lines(data.r$Age, data.r$Per_95, type="l", lty=2, col=2)
lines(data.r$Age, data.r$Per_5 - tol, type="l", lty=2, col=4)
lines(data.r$Age, data.r$Per_95 + tol, type="l", lty=2, col=4)

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(MonoInc)
Loading required package: compare

Attaching package: 'compare'

The following object is masked from 'package:base':

    isTRUE

Loading required package: doParallel
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MonoInc/data.r.Rd_%03d_medium.png", width=480, height=480)
> ### Name: data.r
> ### Title: Data range
> ### Aliases: data.r
> ### Keywords: datasets CDC
> 
> ### ** Examples
> 
> data(data.r)
> ## plot Range boundary lines
> tol <- 3
> plot(data.r$Age, data.r$Per_5, type="l", lty=2, col=2)
> lines(data.r$Age, data.r$Per_95, type="l", lty=2, col=2)
> lines(data.r$Age, data.r$Per_5 - tol, type="l", lty=2, col=4)
> lines(data.r$Age, data.r$Per_95 + tol, type="l", lty=2, col=4)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>