data-dataLine: A Dummy Data for Line Charts

Description Format See Also Examples

Description

A Dummy Data for Line Charts

Format

A data frame with 144 observations on the following 5 variables.

date

date

group

a measurement group (has three groups "T", "H", and "L")

marker

a biomarker level (has two groups "High", and "Low")

sex

sex

y

a measurement variable

See Also

line-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# This data is generated by the code below:
# set.seed(5435678)
# date <- rep(seq(Sys.Date(), len = 12, by = "1 month"), each = 12)
# group <- rep(c("T", "H", "L"), 12, each = 4)
# marker <- factor(rep(c("High", "Low"), 36, each = 2))
# sex <- factor(rep(c("M", "F"), 72))
# mu <- rep(c(200, 50, 150), 12, each = 4) + 10 * as.numeric(sex) + 30 * as.numeric(marker)
# y <- rnorm(144, mu, 25)
# dataLine <- data.frame(date, group, marker, sex, y)
# save(dataLine, file = "dataLine.RData")
# try(data(dataLine, package = "RcmdrPlugin.KMggplot2"))

triadsou/RcmdrPlugin.KMggplot2 documentation built on May 31, 2019, 7:52 p.m.