dataLine {RcmdrPlugin.KMggplot2} | R Documentation |
A Dummy Data for Line Charts
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
# 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"))
[Package RcmdrPlugin.KMggplot2 version 0.2-6 Index]