For the following questions you work with the built-in dataset Theoph
. It contains data on the pharmacokinetics of theophylline in twelve subjects:
Subject Wt Dose Time conc
1 1 79.6 4.02 0.00 0.74
2 1 79.6 4.02 0.25 2.84
3 1 79.6 4.02 0.57 6.57
4 1 79.6 4.02 1.12 10.50
5 1 79.6 4.02 2.02 9.66
6 1 79.6 4.02 3.82 8.58
7 1 79.6 4.02 5.10 8.36
8 1 79.6 4.02 7.03 7.47
9 1 79.6 4.02 9.05 6.89
10 1 79.6 4.02 12.12 5.94
Question: Use lattice graphics to create a histogram of the overall concentrations (the variable conc
). Use eight bins for binning the data. Store the graph in an object called p3
.
Note: The command as.grob()
from the ggplotify package enables Dodona to check your result. Just put your ordinary graphical command(s) between the two comments.