Ziru | R Documentation |
A tibble with weight measurements from C57BL/6 male mice over 10 weeks.
data(Ziru)
A tibble
This data was created using inst/extdata/processZiru.R
data(Ziru)
show(Ziru)
# if `ggplot2` is installed:
if (require("ggplot2") & require("reshape2")) {
Ziru$mouse <- seq_len(nrow(Ziru))
melted <- melt(Ziru,
id.vars="mouse",
variable.name="week",
value.name="weight")
melted$week <- as.ordered(melted$week)
ggplot(melted, aes(group=mouse, x=week, y=weight, color=mouse)) +
geom_point() +
geom_line() +
theme_minimal()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.