powered by
A dataset containing measurements on the oxygen consumption of leukocytes in the presence and absence of inactivated staphylococci.
data(o2cons)
A data frame with 144 rows and 5 variables:
oxygen consumption of leukocytes in \(\mu\)l
whether or not inactivated staphylococci were added, 1 denotes yes, 0 no
the measurements were taken after 6, 12 and 18 minutes
the treatment group, either P for Placebo or V for Verum
the subject id
library(ggplot2) ggplot(o2cons, aes(x=Group, y=O2)) + geom_point(alpha=0.5) + facet_grid(Staphylococci~Time) + stat_summary(fun.y = mean, fun.ymin = min, fun.ymax = max, colour = "red")
Run the code above in your browser using DataLab