Description Format See Also Examples
A Dummy Data for Line Charts
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
line-class
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.